Observable.Blocking.cs 423 B

1234567891011121314151617
  1. using System;
  2. namespace UniRx
  3. {
  4. public static partial class Observable
  5. {
  6. public static T Wait<T>(this IObservable<T> source)
  7. {
  8. return new UniRx.Operators.Wait<T>(source, InfiniteTimeSpan).Run();
  9. }
  10. public static T Wait<T>(this IObservable<T> source, TimeSpan timeout)
  11. {
  12. return new UniRx.Operators.Wait<T>(source, timeout).Run();
  13. }
  14. }
  15. }