Pause and Resume

Trans <[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <[email protected]>
I've been working with YAML streams the last couple of days and I've run 
into an issue/question I could use some help with.

The program I am working on passes a YAML stream through a pipe. At any 
point during the stream the producing program may need to halt the YAML 
stream and somehow instruct the program at the end of the pipe that the 
YAML is "paused". From there it expects the consuming program to dump what 
comes across the pipe to stdout as given until such time it receives a 
special instruction to "resume" processing the YAML stream.

Initially I thought this should be easy, I can just send a `...` to signal 
the pause and a `---` to restart. But this morning I realized, though I 
might be able to get away with in my particular case, it's not technically 
quite right b/c there could be a situation where the pause needs to occur 
mid-document. 

So this leads me to wonder, should YAML have markers for pause and resume, 
in addition to the current boundary markers?

Also, are there any standards for this kind of thing when using pipes in 
general? If there are maybe that would be sufficient.

Thanks,
Trans

------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk

_______________________________________________
Yaml-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/yaml-core
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.