elizarov
06/14/2017, 1:31 PMselect
supports two general-purpose communication mechanisms: channels (`onSend`/`onReceive`) and futures (onAwait
). As long as you can extract your functions to return either a channel (via actor
or produce
) or a future (via `async), then you’ll be able to use it in selects.