threadAsync

Evaluate value in a new thread. The promise is resolved in the current (calling) thread.

  1. Promise!(T, E) threadAsync(T value)
    Promise!(T, E)
    threadAsync
    (
    T
    E = Exception
    )
    (
    lazy T value
    )
    if (
    !is(T == return)
    )
  2. Promise!(T, E) threadAsync(T delegate() value)
  3. Promise!(T, E) threadAsync(T function() value)

Meta