18 lines
423 B
C#
18 lines
423 B
C#
using System;
|
|
|
|
namespace UniRx
|
|
{
|
|
public static partial class Observable
|
|
{
|
|
public static T Wait<T>(this IObservable<T> source)
|
|
{
|
|
return new UniRx.Operators.Wait<T>(source, InfiniteTimeSpan).Run();
|
|
}
|
|
|
|
public static T Wait<T>(this IObservable<T> source, TimeSpan timeout)
|
|
{
|
|
return new UniRx.Operators.Wait<T>(source, timeout).Run();
|
|
}
|
|
}
|
|
}
|