Clarify async() semantics.

This commit is contained in:
Sönke Ludwig 2017-06-12 17:34:09 +02:00
parent 62e3add3ab
commit 5c156d1e90

View file

@ -1112,8 +1112,9 @@ struct Future(T) {
Starts an asynchronous computation and returns a future for the result value. Starts an asynchronous computation and returns a future for the result value.
If the supplied callable and arguments are all weakly isolated, If the supplied callable and arguments are all weakly isolated,
$(D vibe.core.core.runWorkerTask) will be used to perform the computation. $(D vibe.core.core.runWorkerTask) will be used to perform the computation in
Otherwise, $(D vibe.core.core.runTask) will be used. a separate worker thread. Otherwise, $(D vibe.core.core.runTask) will be
used and the result is computed within a separate task within the calling thread.
Params: Params:
callable: A callable value, can be either a function, a delegate, or a callable: A callable value, can be either a function, a delegate, or a