On 11/09/2017 14:04, Hartmut Kaiser wrote:
> A future which was created as deferred will be executed only if future::get
> is called:
>
> hpx::future<T> f = hpx::async(hpx::launch::deferred, []() {...});
> //...
> f.get(); // <-- this triggers the execution of the lambda.
>
> FWIW, you can also pass the deferred launch policy to dataflow and
> future::then, if needed.
Ah, yes, I now remember having seen that before. Thank you very much.
Kor de Jong
_______________________________________________
hpx-users mailing list
[email protected]
https://mail.cct.lsu.edu/mailman/listinfo/hpx-users