Future.runInFiber

Launch a new fiber that will run the specified callback, set the future when the callback returns

The first form runs F function with all arguments.

The second form does the same, but specified a different context to spawn the fiber in. The first argument can be any object with a spawnFiber function. The most obvious example is a FiberGroup for the fiber to belong to.

The third and fourth forms are for running a supplied delegate instead of an aliased function.

  1. auto runInFiber(Parameters!F args)
  2. auto runInFiber(Runner runner, Parameters!F args)
  3. auto runInFiber(T delegate() dlg)
  4. auto runInFiber(Runner runner, T delegate() dlg)
    struct Future(T)
    runInFiber
    (
    T
    Runner
    )
    (
    ref Runner runner
    ,
    T delegate
    ()
    dlg
    )

Meta