C# Class Corlib.Threading.WaitHandleExtensions

显示文件 Open project: GeorgeTsiokos/corlib

Public Methods

Method Description
ToObservable ( this waitHandle, bool executeOnlyOnce, System.TimeSpan timeout = null ) : IObservable

Converts a System.Threading.WaitHandle to an observable sequence

Method Details

ToObservable() public static method

Converts a System.Threading.WaitHandle to an observable sequence
public static ToObservable ( this waitHandle, bool executeOnlyOnce, System.TimeSpan timeout = null ) : IObservable
waitHandle this the value to convert
executeOnlyOnce bool true to observe multiple signals, false to complete the stream when signaled
timeout System.TimeSpan optional timeout waiting for a single
return IObservable