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
{{ message }}
This repository was archived by the owner on Aug 6, 2020. It is now read-only.
At the moment Concurrent.unicast is really hard to use. It should often be used instead of Concurrent.broadcast, but I think it's just too hard to work out. I wanted to suggest updating the docs in #3336 to use Concurrent.unicast but I couldn't write the code succinctly.
Make a new Concurrent.unicast method that creates an Enumerator that can only be used once. Only being usable once will simplify the code and make things more efficient..
Change the signature to use Futures instead of callbacks. We can do this because we're only using the Enumerator once.
/** * @paramchannel The Channel to push inputs down. * @paramcompletion A future that will be completed when the attached * Iteratee is Done or completes with an Error. Will be a failure if the * Iterate had an error.*/finalcaseclassUnicast[E](channel: Channel[E], completion: Future[Unit])
defunicast[E]: (Enumerator, Future[Unicast])