forked from ServiceStack/ServiceStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathActionExecExtensions.cs
More file actions
51 lines (42 loc) · 1.32 KB
/
ActionExecExtensions.cs
File metadata and controls
51 lines (42 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
using System;
using System.Collections.Generic;
using System.Threading;
using Proxy = ServiceStack.Common.ActionExecExtensions;
namespace ServiceStack.Common.Extensions
{
public static class ExtensionsProxy
{
public static void ExecAllAndWait(this ICollection<Action> actions, TimeSpan timeout)
{
Proxy.ExecAllAndWait(actions, timeout);
}
public static List<WaitHandle> ExecAsync(this IEnumerable<Action> actions)
{
return Proxy.ExecAsync(actions);
}
public static bool WaitAll(this List<WaitHandle> waitHandles, int timeoutMs)
{
return Proxy.WaitAll(waitHandles, timeoutMs);
}
public static bool WaitAll(this ICollection<WaitHandle> waitHandles, int timeoutMs)
{
return Proxy.WaitAll(waitHandles, timeoutMs);
}
public static bool WaitAll(this ICollection<WaitHandle> waitHandles, TimeSpan timeout)
{
return Proxy.WaitAll(waitHandles, timeout);
}
public static bool WaitAll(this List<IAsyncResult> asyncResults, TimeSpan timeout)
{
return Proxy.WaitAll(asyncResults, timeout);
}
public static bool WaitAll(WaitHandle[] waitHandles, TimeSpan timeout)
{
return Proxy.WaitAll(waitHandles, timeout);
}
public static bool WaitAll(WaitHandle[] waitHandles, int timeOutMs)
{
return Proxy.WaitAll(waitHandles, timeOutMs);
}
}
}