Ejemplo n.º 1
0
 /// <summary>
 /// Launch the async computation without awaiting the result
 /// </summary>
 public static Eff <Unit> fork <A>(Aff <A> ma) =>
 ma.Fork();
Ejemplo n.º 2
0
 /// <summary>
 /// Launch the async computation without awaiting the result
 /// </summary>
 /// <remarks>
 /// If the parent expression has `cancel` called on it, then it will also cancel the forked child
 /// expression.
 ///
 /// `Fork` returns an `Eff Unit` as its bound result value.  If you run it, it will cancel the
 /// forked child expression.
 /// </remarks>
 /// <returns>Returns an `Eff Unit` as its bound value.  If it runs, it will cancel the
 /// forked child expression</returns>
 public static Eff <RT, Eff <Unit> > fork <RT, A>(Aff <RT, A> ma) where RT : struct, HasCancel <RT> =>
 ma.Fork();