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)
  3. Promise!(T, E) threadAsync(T function() value)
    Promise!(T, E)
    threadAsync
    (
    T
    E = Exception
    )
    (
    T function
    ()
    value
    )
    if (
    !is(T == return)
    )

Meta