Esempio n. 1
0
        static BoolTask()
        {
            TrueCompletion = TaskSourceSlim.Create <bool>();
            TrueCompletion.SetResult(true);
            True = TrueCompletion.Task;

            TrueCompletionSource = new TaskCompletionSource <bool>();
            TrueCompletionSource.SetResult(true);

            FalseCompletion = TaskSourceSlim.Create <bool>();
            FalseCompletion.SetResult(false);
            False = FalseCompletion.Task;

            FalseCompletionSource = new TaskCompletionSource <bool>(false);
            FalseCompletionSource.SetResult(false);
        }