Submits a task that returns a double and returns a PromiseDouble representing the pending result.
Example:
var pool = WorkerPool.withDefault ();
var promise = pool.submitDouble (() => { return 3.14; });
double result = promise.await ();
pool.shutdown ();
| task |
the task to execute. |
|
a PromiseDouble for the pending result. |