thread_wait_for


Description:


[ Version ( since = "1.0" ) ]
public bool thread_wait_for (owned Future future) throws Error

Use this when running on a thread spawned with `dex_thread_spawn()` and you need to block the thread until future has resolved or rejected.

Parameters:

future

a [class@Dex.Future]

Returns:

true if future resolved, otherwise false and throws is set to the rejection.


Namespace: Dex
Package: libdex-1