From 5c156d1e9059b110070c6116803b6be63af43c4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Mon, 12 Jun 2017 17:34:09 +0200 Subject: [PATCH] Clarify async() semantics. --- source/vibe/core/concurrency.d | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/vibe/core/concurrency.d b/source/vibe/core/concurrency.d index afb9462..657a511 100644 --- a/source/vibe/core/concurrency.d +++ b/source/vibe/core/concurrency.d @@ -1112,8 +1112,9 @@ struct Future(T) { Starts an asynchronous computation and returns a future for the result value. If the supplied callable and arguments are all weakly isolated, - $(D vibe.core.core.runWorkerTask) will be used to perform the computation. - Otherwise, $(D vibe.core.core.runTask) will be used. + $(D vibe.core.core.runWorkerTask) will be used to perform the computation in + 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: callable: A callable value, can be either a function, a delegate, or a