threadAsync

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

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

Meta