You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
423 B
18 lines
423 B
1 year ago
|
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();
|
||
|
}
|
||
|
}
|
||
|
}
|