You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Considering this repo might be orphaned and would be maintained no more, I would like to link another high performance json tool with streaming API here. Hope it would help someone.
I was just running the stream encoding example given in README and got into trouble.
By the way, the example given in README has a trivial bug,
enc.Object(o)
should not be called there, it should beenc.AddObject(o)
instead.The text was updated successfully, but these errors were encountered: