ActionExecExtensions
Assembly: ServiceStack.Common.dll
View Source
Declaration
public static class ActionExecExtensions
Methods
ExecAllAndWait(ICollection<Action>, TimeSpan)
View Source
Declaration
public static void ExecAllAndWait(this ICollection<Action> actions, TimeSpan timeout)
Parameters
Type | Name |
---|---|
System.Collections.Generic.ICollection<System.Action> | actions |
System.TimeSpan | timeout |
ExecAsync(IEnumerable<Action>)
View Source
Declaration
public static List<WaitHandle> ExecAsync(this IEnumerable<Action> actions)
Returns
System.Collections.Generic.List<System.Threading.WaitHandle>
Parameters
Type | Name |
---|---|
System.Collections.Generic.IEnumerable<System.Action> | actions |
WaitAll(List<WaitHandle>, Int32)
View Source
Declaration
public static bool WaitAll(this List<WaitHandle> waitHandles, int timeoutMs)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Collections.Generic.List<System.Threading.WaitHandle> | waitHandles |
System.Int32 | timeoutMs |
WaitAll(ICollection<WaitHandle>, Int32)
View Source
Declaration
public static bool WaitAll(this ICollection<WaitHandle> waitHandles, int timeoutMs)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Collections.Generic.ICollection<System.Threading.WaitHandle> | waitHandles |
System.Int32 | timeoutMs |
WaitAll(ICollection<WaitHandle>, TimeSpan)
View Source
Declaration
public static bool WaitAll(this ICollection<WaitHandle> waitHandles, TimeSpan timeout)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Collections.Generic.ICollection<System.Threading.WaitHandle> | waitHandles |
System.TimeSpan | timeout |
WaitAll(List<IAsyncResult>, TimeSpan)
View Source
Declaration
public static bool WaitAll(this List<IAsyncResult> asyncResults, TimeSpan timeout)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Collections.Generic.List<System.IAsyncResult> | asyncResults |
System.TimeSpan | timeout |
WaitAll(WaitHandle[], TimeSpan)
View Source
Declaration
public static bool WaitAll(WaitHandle[] waitHandles, TimeSpan timeout)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Threading.WaitHandle[] | waitHandles |
System.TimeSpan | timeout |
WaitAll(WaitHandle[], Int32)
View Source
Declaration
public static bool WaitAll(WaitHandle[] waitHandles, int timeOutMs)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Threading.WaitHandle[] | waitHandles |
System.Int32 | timeOutMs |