예제 #1
0
        public static bool Await(this ICompletable source, TimeSpan timeout)
        {
            LatchedCompletableSubscriber lcs = new LatchedCompletableSubscriber();

            source.Subscribe(lcs);

            return(lcs.Await(timeout));
        }
예제 #2
0
        public static void Await(this ICompletable source)
        {
            LatchedCompletableSubscriber lcs = new LatchedCompletableSubscriber();

            source.Subscribe(lcs);

            lcs.Await();
        }