IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
ExecutorExtensions.cs
Go to the documentation of this file.
1using System.Threading;
2using System.Threading.Tasks;
3
4#if FIRST_PASS == false
5
6using java.util.concurrent;
7
9{
10
11 static class ExecutorExtensions
12 {
13
19 public static SynchronizationContext ToSynchronizationContext(this Executor self)
20 {
21 return new ExecutorSynchronizationContext(self);
22 }
23
29 public static TaskScheduler ToTaskScheduler(this Executor self)
30 {
31 return new ExecutorTaskScheduler(self);
32 }
33
34 }
35
36}
37
38#endif
static TaskScheduler ToTaskScheduler(this Executor self)
Gets a TaskScheduler implementation that dispatches to the given Executor.
static SynchronizationContext ToSynchronizationContext(this Executor self)
Gets a TaskScheduler implementation that dispatches to the given Executor.
TaskScheduler implementation that executes tasks on a Executor.
TaskScheduler implementation that executes tasks on a Executor.