Waiting for Resource Acquisition in a Resourceful Stream
With a resourceful stream is there a way to wait for the acquire to complete? Contrived example would be this: https://effect.website/play/#cb05bb0f7897
Currently I pass along a deferred (kinda like in the worker message implementation) but it's getting a bit convoluted, as I'm implementing a protocol stack that maps the stream on different levels. I only want to send control messages when the lower layer connection is fully opened and the stream is set up properly.
Currently I pass along a deferred (kinda like in the worker message implementation) but it's getting a bit convoluted, as I'm implementing a protocol stack that maps the stream on different levels. I only want to send control messages when the lower layer connection is fully opened and the stream is set up properly.
