public class Task extends NetObject implements java.lang.AutoCloseable
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
|
static java.lang.String |
assemblyShortName
Assembly name: System.Private.CoreLib
|
static java.lang.String |
className
Qualified class name: System.Threading.Tasks.Task
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
Task() |
Task(Action action) |
Task(Action action,
CancellationToken cancellationToken) |
Task(Action action,
CancellationToken cancellationToken,
TaskCreationOptions creationOptions) |
Task(Action action,
TaskCreationOptions creationOptions) |
Task(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Task |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into Task, a cast assert is made to check if types are compatible. |
void |
close() |
ConfiguredTaskAwaitable |
ConfigureAwait(boolean continueOnCapturedContext) |
ConfiguredTaskAwaitable |
ConfigureAwait(ConfigureAwaitOptions options) |
static Task |
Delay(int millisecondsDelay) |
static Task |
Delay(int millisecondsDelay,
CancellationToken cancellationToken) |
static Task |
Delay(TimeSpan delay) |
static Task |
Delay(TimeSpan delay,
CancellationToken cancellationToken) |
static Task |
Delay(TimeSpan delay,
TimeProvider timeProvider) |
static Task |
Delay(TimeSpan delay,
TimeProvider timeProvider,
CancellationToken cancellationToken) |
void |
Dispose() |
static Task |
FromCanceled(CancellationToken cancellationToken) |
static Task |
FromException(NetException exception) |
NetObject |
getAsyncState() |
TaskAwaiter |
GetAwaiter() |
static Task |
getCompletedTask() |
TaskCreationOptions |
getCreationOptions() |
AggregateException |
getException() |
static TaskFactory |
getFactory() |
int |
getId() |
boolean |
getIsCanceled() |
boolean |
getIsCompleted() |
boolean |
getIsCompletedSuccessfully() |
boolean |
getIsFaulted() |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
TaskStatus |
getStatus() |
static Task |
Run(Action action) |
static Task |
Run(Action action,
CancellationToken cancellationToken) |
void |
RunSynchronously() |
void |
RunSynchronously(TaskScheduler scheduler) |
void |
setJCOInstance(JCObject instance) |
void |
Start() |
void |
Start(TaskScheduler scheduler) |
void |
Wait() |
void |
Wait(CancellationToken cancellationToken) |
boolean |
Wait(int millisecondsTimeout) |
boolean |
Wait(int millisecondsTimeout,
CancellationToken cancellationToken) |
boolean |
Wait(TimeSpan timeout) |
boolean |
Wait(TimeSpan timeout,
CancellationToken cancellationToken) |
static void |
WaitAll(Task... tasks) |
static void |
WaitAll(Task[] tasks,
CancellationToken cancellationToken) |
static boolean |
WaitAll(Task[] tasks,
int millisecondsTimeout) |
static boolean |
WaitAll(Task[] tasks,
int millisecondsTimeout,
CancellationToken cancellationToken) |
static boolean |
WaitAll(Task[] tasks,
TimeSpan timeout) |
static int |
WaitAny(Task... tasks) |
static int |
WaitAny(Task[] tasks,
CancellationToken cancellationToken) |
static int |
WaitAny(Task[] tasks,
int millisecondsTimeout) |
static int |
WaitAny(Task[] tasks,
int millisecondsTimeout,
CancellationToken cancellationToken) |
static int |
WaitAny(Task[] tasks,
TimeSpan timeout) |
Task |
WaitAsync(CancellationToken cancellationToken) |
Task |
WaitAsync(TimeSpan timeout) |
Task |
WaitAsync(TimeSpan timeout,
CancellationToken cancellationToken) |
Task |
WaitAsync(TimeSpan timeout,
TimeProvider timeProvider) |
Task |
WaitAsync(TimeSpan timeout,
TimeProvider timeProvider,
CancellationToken cancellationToken) |
static Task |
WhenAll(Task... tasks) |
static YieldAwaitable |
Yield() |
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public Task()
throws java.lang.Throwable
java.lang.Throwablepublic Task(Action action) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException
public Task(Action action, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException
public Task(Action action, CancellationToken cancellationToken, TaskCreationOptions creationOptions) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException
public Task(Action action, TaskCreationOptions creationOptions) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException
public Task(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic static Task cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into Task, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedTask instancejava.lang.Throwable - in case of error during cast operationpublic void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exceptionpublic ConfiguredTaskAwaitable ConfigureAwait(boolean continueOnCapturedContext) throws java.lang.Throwable
java.lang.Throwablepublic ConfiguredTaskAwaitable ConfigureAwait(ConfigureAwaitOptions options) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
public static Task Delay(int millisecondsDelay) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, NullReferenceException, ArgumentNullException, LockRecursionException, OutOfMemoryException
public static Task Delay(int millisecondsDelay, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, EventSourceException, IndexOutOfRangeException, NullReferenceException, LockRecursionException, AbandonedMutexException, OutOfMemoryException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionEventSourceExceptionIndexOutOfRangeExceptionNullReferenceExceptionLockRecursionExceptionAbandonedMutexExceptionOutOfMemoryExceptionpublic static Task Delay(TimeSpan delay) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NullReferenceException, LockRecursionException, OutOfMemoryException
public static Task Delay(TimeSpan delay, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NullReferenceException, LockRecursionException, OutOfMemoryException
public static Task Delay(TimeSpan delay, TimeProvider timeProvider) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NullReferenceException, LockRecursionException, OutOfMemoryException
public static Task Delay(TimeSpan delay, TimeProvider timeProvider, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, EventSourceException, IndexOutOfRangeException, NullReferenceException, LockRecursionException, AbandonedMutexException, OutOfMemoryException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionEventSourceExceptionIndexOutOfRangeExceptionNullReferenceExceptionLockRecursionExceptionAbandonedMutexExceptionOutOfMemoryExceptionpublic void Dispose()
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
PlatformNotSupportedException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionpublic static Task FromCanceled(CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
public static Task FromException(NetException exception) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, NullReferenceException
public NetObject getAsyncState() throws java.lang.Throwable
java.lang.Throwablepublic TaskAwaiter GetAwaiter() throws java.lang.Throwable
java.lang.Throwablepublic static Task getCompletedTask() throws java.lang.Throwable
java.lang.Throwablepublic TaskCreationOptions getCreationOptions() throws java.lang.Throwable
java.lang.Throwablepublic AggregateException getException() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, TypeLoadException, NullReferenceException, OutOfMemoryException, FormatException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionTypeLoadExceptionNullReferenceExceptionOutOfMemoryExceptionFormatExceptionpublic static TaskFactory getFactory() throws java.lang.Throwable
java.lang.Throwablepublic int getId()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
OutOfMemoryException,
EventSourceException
public boolean getIsCanceled()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getIsCompleted()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getIsCompletedSuccessfully()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getIsFaulted()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectJCType representing the CLR Type of the instantiated Classpublic TaskStatus getStatus() throws java.lang.Throwable
java.lang.Throwablepublic static Task Run(Action action) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException, IndexOutOfRangeException, OutOfMemoryException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionNullReferenceExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionpublic static Task Run(Action action, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException, IndexOutOfRangeException, OutOfMemoryException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionNullReferenceExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionpublic void RunSynchronously()
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NullReferenceException,
LockRecursionException,
SynchronizationLockException,
OutOfMemoryException,
ArgumentNullException,
IndexOutOfRangeException,
ObjectDisposedException,
OperationCanceledException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNullReferenceExceptionLockRecursionExceptionSynchronizationLockExceptionOutOfMemoryExceptionArgumentNullExceptionIndexOutOfRangeExceptionObjectDisposedExceptionOperationCanceledExceptionpublic void RunSynchronously(TaskScheduler scheduler) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, NullReferenceException, LockRecursionException, SynchronizationLockException, OutOfMemoryException, OperationCanceledException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionArgumentNullExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionNullReferenceExceptionLockRecursionExceptionSynchronizationLockExceptionOutOfMemoryExceptionOperationCanceledExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class NetObjectpublic void Start()
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException,
PlatformNotSupportedException,
NullReferenceException,
IndexOutOfRangeException,
OutOfMemoryException
public void Start(TaskScheduler scheduler) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, NullReferenceException, IndexOutOfRangeException, EventSourceException, OutOfMemoryException, ArgumentNullException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionNullReferenceExceptionIndexOutOfRangeExceptionEventSourceExceptionOutOfMemoryExceptionArgumentNullExceptionpublic void Wait()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
TaskSchedulerException,
NullReferenceException,
OutOfMemoryException,
OperationCanceledException,
FormatException,
ArgumentNullException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionTaskSchedulerExceptionNullReferenceExceptionOutOfMemoryExceptionOperationCanceledExceptionFormatExceptionArgumentNullExceptionpublic void Wait(CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, TaskSchedulerException, NullReferenceException, OutOfMemoryException, OperationCanceledException, FormatException, ArgumentNullException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionTaskSchedulerExceptionNullReferenceExceptionOutOfMemoryExceptionOperationCanceledExceptionFormatExceptionArgumentNullExceptionpublic boolean Wait(int millisecondsTimeout)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
TaskSchedulerException,
NullReferenceException,
OutOfMemoryException,
OperationCanceledException,
FormatException,
ArgumentNullException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionTaskSchedulerExceptionNullReferenceExceptionOutOfMemoryExceptionOperationCanceledExceptionFormatExceptionArgumentNullExceptionpublic boolean Wait(int millisecondsTimeout,
CancellationToken cancellationToken)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
EventSourceException,
TaskSchedulerException,
LockRecursionException,
SynchronizationLockException,
NullReferenceException,
OutOfMemoryException,
OperationCanceledException,
FormatException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionEventSourceExceptionTaskSchedulerExceptionLockRecursionExceptionSynchronizationLockExceptionNullReferenceExceptionOutOfMemoryExceptionOperationCanceledExceptionFormatExceptionpublic boolean Wait(TimeSpan timeout) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, OperationCanceledException, TaskSchedulerException, OutOfMemoryException, IndexOutOfRangeException, FormatException, ArgumentNullException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionOperationCanceledExceptionTaskSchedulerExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionFormatExceptionArgumentNullExceptionpublic boolean Wait(TimeSpan timeout, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, OperationCanceledException, TaskSchedulerException, NullReferenceException, OutOfMemoryException, FormatException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionOperationCanceledExceptionTaskSchedulerExceptionNullReferenceExceptionOutOfMemoryExceptionFormatExceptionpublic static void WaitAll(Task... tasks) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, OperationCanceledException, TaskSchedulerException, NullReferenceException, FormatException, AggregateException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionArgumentNullExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionOperationCanceledExceptionTaskSchedulerExceptionNullReferenceExceptionFormatExceptionAggregateExceptionpublic static void WaitAll(Task[] tasks, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, OperationCanceledException, TaskSchedulerException, NullReferenceException, FormatException, AggregateException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionArgumentNullExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionOperationCanceledExceptionTaskSchedulerExceptionNullReferenceExceptionFormatExceptionAggregateExceptionpublic static boolean WaitAll(Task[] tasks, int millisecondsTimeout) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, OperationCanceledException, TaskSchedulerException, NullReferenceException, FormatException, AggregateException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionArgumentNullExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionOperationCanceledExceptionTaskSchedulerExceptionNullReferenceExceptionFormatExceptionAggregateExceptionpublic static boolean WaitAll(Task[] tasks, int millisecondsTimeout, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, OperationCanceledException, TaskSchedulerException, NullReferenceException, FormatException, AggregateException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionArgumentNullExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionOperationCanceledExceptionTaskSchedulerExceptionNullReferenceExceptionFormatExceptionAggregateExceptionpublic static boolean WaitAll(Task[] tasks, TimeSpan timeout) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, OperationCanceledException, TaskSchedulerException, NullReferenceException, FormatException, AggregateException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionOperationCanceledExceptionTaskSchedulerExceptionNullReferenceExceptionFormatExceptionAggregateExceptionpublic static int WaitAny(Task... tasks) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OperationCanceledException, NullReferenceException, TaskSchedulerException, OutOfMemoryException, FormatException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionOperationCanceledExceptionNullReferenceExceptionTaskSchedulerExceptionOutOfMemoryExceptionFormatExceptionpublic static int WaitAny(Task[] tasks, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OperationCanceledException, NullReferenceException, TaskSchedulerException, OutOfMemoryException, FormatException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionOperationCanceledExceptionNullReferenceExceptionTaskSchedulerExceptionOutOfMemoryExceptionFormatExceptionpublic static int WaitAny(Task[] tasks, int millisecondsTimeout) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OperationCanceledException, NullReferenceException, TaskSchedulerException, OutOfMemoryException, FormatException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionOperationCanceledExceptionNullReferenceExceptionTaskSchedulerExceptionOutOfMemoryExceptionFormatExceptionpublic static int WaitAny(Task[] tasks, int millisecondsTimeout, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OperationCanceledException, NullReferenceException, TaskSchedulerException, OutOfMemoryException, FormatException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionOperationCanceledExceptionNullReferenceExceptionTaskSchedulerExceptionOutOfMemoryExceptionFormatExceptionpublic static int WaitAny(Task[] tasks, TimeSpan timeout) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, OperationCanceledException, NullReferenceException, TaskSchedulerException, OutOfMemoryException, FormatException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionOperationCanceledExceptionNullReferenceExceptionTaskSchedulerExceptionOutOfMemoryExceptionFormatExceptionpublic Task WaitAsync(CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NullReferenceException, LockRecursionException, AbandonedMutexException, OutOfMemoryException
public Task WaitAsync(TimeSpan timeout) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NullReferenceException, LockRecursionException, AbandonedMutexException, OutOfMemoryException
public Task WaitAsync(TimeSpan timeout, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NullReferenceException, LockRecursionException, AbandonedMutexException, OutOfMemoryException
public Task WaitAsync(TimeSpan timeout, TimeProvider timeProvider) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException, LockRecursionException, AbandonedMutexException, OutOfMemoryException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionNullReferenceExceptionLockRecursionExceptionAbandonedMutexExceptionOutOfMemoryExceptionpublic Task WaitAsync(TimeSpan timeout, TimeProvider timeProvider, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException, LockRecursionException, AbandonedMutexException, OutOfMemoryException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionNullReferenceExceptionLockRecursionExceptionAbandonedMutexExceptionOutOfMemoryExceptionpublic static Task WhenAll(Task... tasks) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, EventSourceException, NullReferenceException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionArgumentNullExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionEventSourceExceptionNullReferenceExceptionpublic static YieldAwaitable Yield() throws java.lang.Throwable
java.lang.Throwable