-
Notifications
You must be signed in to change notification settings - Fork 113
Open
Description
I was just running the stream encoding example given in README and got into trouble.
- Stream encoding API supports enc.Done() to synchronize consumers and help them exit after all jobs are done. However it does not support any ways to notify consumers that no more jobs would be delivered in future. Unfortunately this would trap all consumers into endless wait, or deadlock.
fatal error: all goroutines are asleep - deadlock!
- The order of output stream is not consistent with input stream while mulitiple consumers are working together.
By the way, the example given in README has a trivial bug, enc.Object(o) should not be called there, it should be enc.AddObject(o) instead.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels