Beispiel #1
0
        public void ToAsync()
        {
            FSharpAsync <int>  a = L.F(() => 1).ToFSharpAsync();
            FSharpAsync <Unit> b = a.IgnoreResult();

            // super verbose return
            FSharpAsync <int> i = ExtraTopLevelOperators.DefaultAsyncBuilder.Return(1);

            FSharpAsync <int>         x  = FSharpAsyncEx.Return(1);
            FSharpAsync <Func <int> > fa = FSharpAsyncEx.Return(L.F(() => 1));
        }