Callback that is recreated each time it is used.
Callback that is recreated each time it is used.
https://en.wikipedia.org/wiki/Evaluation_strategy#Call_by_name
Callback that isn't created until the first time it is used, after which it is reused.
Create an AsyncCallback and separately provide the completion function.
Create an AsyncCallback and separately provide the completion function.
This is like Scala's promise, not the JS promise which is more like Scala's Future.
Sequence stdlib T over AsyncCallback.
Sequence stdlib T over AsyncCallback. Co-sequence AsyncCallback over stdlib T.
Sequence Option over AsyncCallback.
Sequence Option over AsyncCallback. Co-sequence AsyncCallback over Option.
Not literally tail-recursive because AsyncCallback is continuation-based, but this utility in this shape may still be useful.
Traverse stdlib T over AsyncCallback.
Traverse stdlib T over AsyncCallback. Distribute AsyncCallback over stdlib T.
Traverse Option over AsyncCallback.
Traverse Option over AsyncCallback. Distribute AsyncCallback over Option.
(Since version ) Use c.asAsyncCallback