Parcel (or analog) to exchange data between Parent and Child processes

44 Views Asked by At

I have a worker pool with some tasks running. Workers are using consumables they may request at any time - I wish to use Parcel for this purpose. Parcel is a very convenient way of communicating with data, but it can't be serialized and thus you can't pass it to tasks. There's also Channel, but I don't understand how to use it in more complex cases than the docs described (when you send value, receive value, and return result). How to solve my dilemma without crutches? Thanks!

0

There are 0 best solutions below