Package system.threading.tasks
Class Task
- java.lang.Object
- 
- org.mases.jcobridge.netreflection.NetObject
- 
- system.threading.tasks.Task
 
 
- 
- All Implemented Interfaces:
- java.lang.AutoCloseable,- IJCOBridgeReflected
 
 public class Task extends NetObject implements java.lang.AutoCloseable The base .NET class managing System.Threading.Tasks.Task, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e..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 - Author:
- MASES s.r.l https://masesgroup.com
 
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798estatic java.lang.StringassemblyShortNameAssembly name: System.Private.CoreLibstatic java.lang.StringclassNameQualified class name: System.Threading.Tasks.Taskstatic JCTypeclassTypeThe type managed from JCOBridge.
 - 
Constructor SummaryConstructors Constructor Description Task()Task(java.lang.Object instance)Internal constructor.Task(Action action)Task(Action action, CancellationToken cancellationToken)Task(Action action, CancellationToken cancellationToken, TaskCreationOptions creationOptions)Task(Action action, TaskCreationOptions creationOptions)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Taskcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoTask, a cast assert is made to check if types are compatible.voidclose()ConfiguredTaskAwaitableConfigureAwait(boolean continueOnCapturedContext)ConfiguredTaskAwaitableConfigureAwait(ConfigureAwaitOptions options)static TaskDelay(int millisecondsDelay)static TaskDelay(int millisecondsDelay, CancellationToken cancellationToken)static TaskDelay(TimeSpan delay)static TaskDelay(TimeSpan delay, CancellationToken cancellationToken)static TaskDelay(TimeSpan delay, TimeProvider timeProvider)static TaskDelay(TimeSpan delay, TimeProvider timeProvider, CancellationToken cancellationToken)voidDispose()static TaskFromCanceled(CancellationToken cancellationToken)static TaskFromException(NetException exception)NetObjectgetAsyncState()TaskAwaiterGetAwaiter()static TaskgetCompletedTask()TaskCreationOptionsgetCreationOptions()AggregateExceptiongetException()static TaskFactorygetFactory()intgetId()booleangetIsCanceled()booleangetIsCompleted()booleangetIsCompletedSuccessfully()booleangetIsFaulted()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypeTaskStatusgetStatus()static TaskRun(Action action)static TaskRun(Action action, CancellationToken cancellationToken)voidRunSynchronously()voidRunSynchronously(TaskScheduler scheduler)voidsetJCOInstance(JCObject instance)voidStart()voidStart(TaskScheduler scheduler)voidWait()booleanWait(int millisecondsTimeout)booleanWait(int millisecondsTimeout, CancellationToken cancellationToken)voidWait(CancellationToken cancellationToken)booleanWait(TimeSpan timeout)booleanWait(TimeSpan timeout, CancellationToken cancellationToken)static voidWaitAll(Task... tasks)static booleanWaitAll(Task[] tasks, int millisecondsTimeout)static booleanWaitAll(Task[] tasks, int millisecondsTimeout, CancellationToken cancellationToken)static voidWaitAll(Task[] tasks, CancellationToken cancellationToken)static booleanWaitAll(Task[] tasks, TimeSpan timeout)static intWaitAny(Task... tasks)static intWaitAny(Task[] tasks, int millisecondsTimeout)static intWaitAny(Task[] tasks, int millisecondsTimeout, CancellationToken cancellationToken)static intWaitAny(Task[] tasks, CancellationToken cancellationToken)static intWaitAny(Task[] tasks, TimeSpan timeout)TaskWaitAsync(CancellationToken cancellationToken)TaskWaitAsync(TimeSpan timeout)TaskWaitAsync(TimeSpan timeout, CancellationToken cancellationToken)TaskWaitAsync(TimeSpan timeout, TimeProvider timeProvider)TaskWaitAsync(TimeSpan timeout, TimeProvider timeProvider, CancellationToken cancellationToken)static TaskWhenAll(Task... tasks)static YieldAwaitableYield()
 
- 
- 
- 
Field Detail- 
assemblyFullNamepublic static final java.lang.String assemblyFullName Fully assembly qualified name: System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e- See Also:
- Constant Field Values
 
 - 
assemblyShortNamepublic static final java.lang.String assemblyShortName Assembly name: System.Private.CoreLib- See Also:
- Constant Field Values
 
 - 
classNamepublic static final java.lang.String className Qualified class name: System.Threading.Tasks.Task- See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
Taskpublic Task(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
- java.lang.Throwable
 
 - 
Taskpublic Task() throws java.lang.Throwable- Throws:
- java.lang.Throwable
 
 - 
Taskpublic Task(Action action, CancellationToken cancellationToken, TaskCreationOptions creationOptions) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException 
 - 
Taskpublic Task(Action action, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException 
 - 
Taskpublic Task(Action action, TaskCreationOptions creationOptions) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException 
 - 
Taskpublic Task(Action action) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException 
 
- 
 - 
Method Detail- 
getJCOAssemblyNamepublic java.lang.String getJCOAssemblyName() Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
- getJCOAssemblyNamein interface- IJCOBridgeReflected
- Overrides:
- getJCOAssemblyNamein class- NetObject
- Returns:
- A Stringrepresenting the Fullname of reflected Assembly
 
 - 
getJCOClassNamepublic java.lang.String getJCOClassName() Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
- getJCOClassNamein interface- IJCOBridgeReflected
- Overrides:
- getJCOClassNamein class- NetObject
- Returns:
- A Stringrepresenting the Fullname of reflected Class
 
 - 
getJCOObjectNamepublic java.lang.String getJCOObjectName() Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
- getJCOObjectNamein interface- IJCOBridgeReflected
- Overrides:
- getJCOObjectNamein class- NetObject
- Returns:
- A Stringrepresenting the name used to allocated the object in CLR context
 
 - 
getJCOInstancepublic java.lang.Object getJCOInstance() Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
- getJCOInstancein interface- IJCOBridgeReflected
- Overrides:
- getJCOInstancein class- NetObject
- Returns:
- An Objectrepresenting the CLR instance of the instantiated Class
 
 - 
setJCOInstancepublic void setJCOInstance(JCObject instance) - Overrides:
- setJCOInstancein class- NetObject
 
 - 
getJCOTypepublic JCType getJCOType() Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
- getJCOTypein interface- IJCOBridgeReflected
- Overrides:
- getJCOTypein class- NetObject
- Returns:
- A JCTyperepresenting the CLR Type of the instantiated Class
 
 - 
castpublic static Task cast(IJCOBridgeReflected from) throws java.lang.Throwable Try to cast theIJCOBridgeReflectedinstance intoTask, a cast assert is made to check if types are compatible.- Parameters:
- from-- IJCOBridgeReflectedinstance to be casted
- Returns:
- Taskinstance
- Throws:
- java.lang.Throwable- in case of error during cast operation
 
 - 
Waitpublic 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- Throws:
- java.lang.Throwable
- ArgumentException
- ArgumentOutOfRangeException
- ArgumentNullException
- InvalidOperationException
- PlatformNotSupportedException
- ArrayTypeMismatchException
- NotSupportedException
- ObjectDisposedException
- RankException
- IndexOutOfRangeException
- EventSourceException
- TaskSchedulerException
- LockRecursionException
- SynchronizationLockException
- NullReferenceException
- OutOfMemoryException
- OperationCanceledException
- FormatException
 
 - 
Waitpublic boolean Wait(int millisecondsTimeout) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, TaskSchedulerException, NullReferenceException, OutOfMemoryException, OperationCanceledException, FormatException, ArgumentNullException- Throws:
- java.lang.Throwable
- ArgumentException
- ArgumentOutOfRangeException
- PlatformNotSupportedException
- NotSupportedException
- ObjectDisposedException
- InvalidOperationException
- RankException
- ArrayTypeMismatchException
- TaskSchedulerException
- NullReferenceException
- OutOfMemoryException
- OperationCanceledException
- FormatException
- ArgumentNullException
 
 - 
Waitpublic 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 - Throws:
- java.lang.Throwable
- ArgumentException
- ArgumentOutOfRangeException
- ArgumentNullException
- InvalidOperationException
- PlatformNotSupportedException
- ArrayTypeMismatchException
- NotSupportedException
- ObjectDisposedException
- RankException
- IndexOutOfRangeException
- OperationCanceledException
- TaskSchedulerException
- NullReferenceException
- OutOfMemoryException
- FormatException
 
 - 
Waitpublic boolean Wait(TimeSpan timeout) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, OperationCanceledException, TaskSchedulerException, OutOfMemoryException, IndexOutOfRangeException, FormatException, ArgumentNullException - Throws:
- java.lang.Throwable
- ArgumentException
- ArgumentOutOfRangeException
- PlatformNotSupportedException
- NotSupportedException
- ObjectDisposedException
- InvalidOperationException
- RankException
- ArrayTypeMismatchException
- OperationCanceledException
- TaskSchedulerException
- OutOfMemoryException
- IndexOutOfRangeException
- FormatException
- ArgumentNullException
 
 - 
WaitAllpublic 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 - Throws:
- java.lang.Throwable
- ArgumentException
- ArgumentOutOfRangeException
- InvalidOperationException
- PlatformNotSupportedException
- ArrayTypeMismatchException
- NotSupportedException
- ArgumentNullException
- ObjectDisposedException
- RankException
- IndexOutOfRangeException
- OperationCanceledException
- TaskSchedulerException
- NullReferenceException
- FormatException
- AggregateException
 
 - 
WaitAllpublic 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 - Throws:
- java.lang.Throwable
- ArgumentException
- ArgumentOutOfRangeException
- InvalidOperationException
- PlatformNotSupportedException
- ArrayTypeMismatchException
- NotSupportedException
- ArgumentNullException
- ObjectDisposedException
- RankException
- IndexOutOfRangeException
- OperationCanceledException
- TaskSchedulerException
- NullReferenceException
- FormatException
- AggregateException
 
 - 
WaitAllpublic 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 - Throws:
- java.lang.Throwable
- ArgumentException
- ArgumentOutOfRangeException
- ArgumentNullException
- InvalidOperationException
- PlatformNotSupportedException
- ArrayTypeMismatchException
- NotSupportedException
- ObjectDisposedException
- RankException
- IndexOutOfRangeException
- OperationCanceledException
- TaskSchedulerException
- NullReferenceException
- FormatException
- AggregateException
 
 - 
WaitAnypublic 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 - Throws:
- java.lang.Throwable
- ArgumentException
- ArgumentOutOfRangeException
- PlatformNotSupportedException
- NotSupportedException
- ObjectDisposedException
- InvalidOperationException
- RankException
- ArrayTypeMismatchException
- ArgumentNullException
- OperationCanceledException
- NullReferenceException
- TaskSchedulerException
- OutOfMemoryException
- FormatException
 
 - 
WaitAnypublic 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 - Throws:
- java.lang.Throwable
- ArgumentException
- ArgumentOutOfRangeException
- PlatformNotSupportedException
- NotSupportedException
- ObjectDisposedException
- InvalidOperationException
- RankException
- ArrayTypeMismatchException
- ArgumentNullException
- OperationCanceledException
- NullReferenceException
- TaskSchedulerException
- OutOfMemoryException
- FormatException
 
 - 
WaitAnypublic 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 - Throws:
- java.lang.Throwable
- ArgumentException
- ArgumentOutOfRangeException
- PlatformNotSupportedException
- NotSupportedException
- ObjectDisposedException
- InvalidOperationException
- RankException
- ArrayTypeMismatchException
- ArgumentNullException
- OperationCanceledException
- NullReferenceException
- TaskSchedulerException
- OutOfMemoryException
- FormatException
 
 - 
WaitAnypublic 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 - Throws:
- java.lang.Throwable
- ArgumentException
- ArgumentOutOfRangeException
- ArgumentNullException
- InvalidOperationException
- PlatformNotSupportedException
- ArrayTypeMismatchException
- NotSupportedException
- ObjectDisposedException
- RankException
- IndexOutOfRangeException
- OperationCanceledException
- NullReferenceException
- TaskSchedulerException
- OutOfMemoryException
- FormatException
 
 - 
WaitAnypublic static int WaitAny(Task... tasks) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OperationCanceledException, NullReferenceException, TaskSchedulerException, OutOfMemoryException, FormatException - Throws:
- java.lang.Throwable
- ArgumentException
- ArgumentOutOfRangeException
- PlatformNotSupportedException
- NotSupportedException
- ObjectDisposedException
- InvalidOperationException
- RankException
- ArrayTypeMismatchException
- ArgumentNullException
- OperationCanceledException
- NullReferenceException
- TaskSchedulerException
- OutOfMemoryException
- FormatException
 
 - 
ConfigureAwaitpublic ConfiguredTaskAwaitable ConfigureAwait(boolean continueOnCapturedContext) throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
ConfigureAwaitpublic ConfiguredTaskAwaitable ConfigureAwait(ConfigureAwaitOptions options) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException 
 - 
GetAwaiterpublic TaskAwaiter GetAwaiter() throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
Yieldpublic static YieldAwaitable Yield() throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
Delaypublic 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 - Throws:
- java.lang.Throwable
- ArgumentException
- ArgumentOutOfRangeException
- PlatformNotSupportedException
- NotSupportedException
- ObjectDisposedException
- InvalidOperationException
- RankException
- ArrayTypeMismatchException
- EventSourceException
- IndexOutOfRangeException
- NullReferenceException
- LockRecursionException
- AbandonedMutexException
- OutOfMemoryException
 
 - 
Delaypublic static Task Delay(int millisecondsDelay) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, NullReferenceException, ArgumentNullException, LockRecursionException, OutOfMemoryException 
 - 
Delaypublic static Task Delay(TimeSpan delay, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NullReferenceException, LockRecursionException, OutOfMemoryException 
 - 
Delaypublic 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 - Throws:
- java.lang.Throwable
- ArgumentException
- ArgumentOutOfRangeException
- PlatformNotSupportedException
- NotSupportedException
- ObjectDisposedException
- InvalidOperationException
- RankException
- ArrayTypeMismatchException
- ArgumentNullException
- EventSourceException
- IndexOutOfRangeException
- NullReferenceException
- LockRecursionException
- AbandonedMutexException
- OutOfMemoryException
 
 - 
Delaypublic static Task Delay(TimeSpan delay, TimeProvider timeProvider) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NullReferenceException, LockRecursionException, OutOfMemoryException 
 - 
Delaypublic static Task Delay(TimeSpan delay) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NullReferenceException, LockRecursionException, OutOfMemoryException 
 - 
FromCanceledpublic static Task FromCanceled(CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException 
 - 
FromExceptionpublic static Task FromException(NetException exception) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, NullReferenceException 
 - 
Runpublic static Task Run(Action action, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException, IndexOutOfRangeException, OutOfMemoryException - Throws:
- java.lang.Throwable
- ArgumentException
- ArgumentOutOfRangeException
- PlatformNotSupportedException
- NotSupportedException
- ObjectDisposedException
- InvalidOperationException
- RankException
- ArrayTypeMismatchException
- ArgumentNullException
- NullReferenceException
- IndexOutOfRangeException
- OutOfMemoryException
 
 - 
Runpublic static Task Run(Action action) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException, IndexOutOfRangeException, OutOfMemoryException - Throws:
- java.lang.Throwable
- ArgumentException
- ArgumentOutOfRangeException
- PlatformNotSupportedException
- NotSupportedException
- ObjectDisposedException
- InvalidOperationException
- RankException
- ArrayTypeMismatchException
- ArgumentNullException
- NullReferenceException
- IndexOutOfRangeException
- OutOfMemoryException
 
 - 
WaitAsyncpublic Task WaitAsync(CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NullReferenceException, LockRecursionException, AbandonedMutexException, OutOfMemoryException 
 - 
WaitAsyncpublic Task WaitAsync(TimeSpan timeout, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NullReferenceException, LockRecursionException, AbandonedMutexException, OutOfMemoryException 
 - 
WaitAsyncpublic 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 - Throws:
- java.lang.Throwable
- ArgumentException
- ArgumentOutOfRangeException
- PlatformNotSupportedException
- NotSupportedException
- ObjectDisposedException
- InvalidOperationException
- RankException
- ArrayTypeMismatchException
- ArgumentNullException
- NullReferenceException
- LockRecursionException
- AbandonedMutexException
- OutOfMemoryException
 
 - 
WaitAsyncpublic Task WaitAsync(TimeSpan timeout, TimeProvider timeProvider) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException, LockRecursionException, AbandonedMutexException, OutOfMemoryException - Throws:
- java.lang.Throwable
- ArgumentException
- ArgumentOutOfRangeException
- PlatformNotSupportedException
- NotSupportedException
- ObjectDisposedException
- InvalidOperationException
- RankException
- ArrayTypeMismatchException
- ArgumentNullException
- NullReferenceException
- LockRecursionException
- AbandonedMutexException
- OutOfMemoryException
 
 - 
WaitAsyncpublic Task WaitAsync(TimeSpan timeout) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NullReferenceException, LockRecursionException, AbandonedMutexException, OutOfMemoryException 
 - 
WhenAllpublic static Task WhenAll(Task... tasks) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, EventSourceException, NullReferenceException - Throws:
- java.lang.Throwable
- ArgumentException
- ArgumentOutOfRangeException
- InvalidOperationException
- PlatformNotSupportedException
- ArrayTypeMismatchException
- NotSupportedException
- ArgumentNullException
- ObjectDisposedException
- RankException
- IndexOutOfRangeException
- EventSourceException
- NullReferenceException
 
 - 
Disposepublic void Dispose() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException- Throws:
- java.lang.Throwable
- ArgumentException
- NotSupportedException
- InvalidOperationException
- ArgumentOutOfRangeException
- PlatformNotSupportedException
 
 - 
RunSynchronouslypublic void RunSynchronously() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, NullReferenceException, LockRecursionException, SynchronizationLockException, OutOfMemoryException, ArgumentNullException, IndexOutOfRangeException, ObjectDisposedException, OperationCanceledException- Throws:
- java.lang.Throwable
- ArgumentException
- NotSupportedException
- InvalidOperationException
- ArgumentOutOfRangeException
- PlatformNotSupportedException
- NullReferenceException
- LockRecursionException
- SynchronizationLockException
- OutOfMemoryException
- ArgumentNullException
- IndexOutOfRangeException
- ObjectDisposedException
- OperationCanceledException
 
 - 
RunSynchronouslypublic void RunSynchronously(TaskScheduler scheduler) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, NullReferenceException, LockRecursionException, SynchronizationLockException, OutOfMemoryException, OperationCanceledException - Throws:
- java.lang.Throwable
- ArgumentException
- ArgumentOutOfRangeException
- InvalidOperationException
- PlatformNotSupportedException
- ArrayTypeMismatchException
- NotSupportedException
- ArgumentNullException
- ObjectDisposedException
- RankException
- IndexOutOfRangeException
- NullReferenceException
- LockRecursionException
- SynchronizationLockException
- OutOfMemoryException
- OperationCanceledException
 
 - 
Startpublic void Start() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NullReferenceException, IndexOutOfRangeException, OutOfMemoryException
 - 
Startpublic void Start(TaskScheduler scheduler) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, NullReferenceException, IndexOutOfRangeException, EventSourceException, OutOfMemoryException, ArgumentNullException - Throws:
- java.lang.Throwable
- ArgumentException
- ArgumentOutOfRangeException
- PlatformNotSupportedException
- NotSupportedException
- ObjectDisposedException
- InvalidOperationException
- RankException
- ArrayTypeMismatchException
- NullReferenceException
- IndexOutOfRangeException
- EventSourceException
- OutOfMemoryException
- ArgumentNullException
 
 - 
Waitpublic void Wait() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, TaskSchedulerException, NullReferenceException, OutOfMemoryException, OperationCanceledException, FormatException, ArgumentNullException- Throws:
- java.lang.Throwable
- ArgumentException
- ArgumentOutOfRangeException
- PlatformNotSupportedException
- NotSupportedException
- ObjectDisposedException
- InvalidOperationException
- RankException
- ArrayTypeMismatchException
- TaskSchedulerException
- NullReferenceException
- OutOfMemoryException
- OperationCanceledException
- FormatException
- ArgumentNullException
 
 - 
Waitpublic void Wait(CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, TaskSchedulerException, NullReferenceException, OutOfMemoryException, OperationCanceledException, FormatException, ArgumentNullException - Throws:
- java.lang.Throwable
- ArgumentException
- ArgumentOutOfRangeException
- PlatformNotSupportedException
- NotSupportedException
- ObjectDisposedException
- InvalidOperationException
- RankException
- ArrayTypeMismatchException
- TaskSchedulerException
- NullReferenceException
- OutOfMemoryException
- OperationCanceledException
- FormatException
- ArgumentNullException
 
 - 
WaitAllpublic 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 - Throws:
- java.lang.Throwable
- ArgumentException
- ArgumentOutOfRangeException
- InvalidOperationException
- PlatformNotSupportedException
- ArrayTypeMismatchException
- NotSupportedException
- ArgumentNullException
- ObjectDisposedException
- RankException
- IndexOutOfRangeException
- OperationCanceledException
- TaskSchedulerException
- NullReferenceException
- FormatException
- AggregateException
 
 - 
WaitAllpublic static void WaitAll(Task... tasks) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, OperationCanceledException, TaskSchedulerException, NullReferenceException, FormatException, AggregateException - Throws:
- java.lang.Throwable
- ArgumentException
- ArgumentOutOfRangeException
- InvalidOperationException
- PlatformNotSupportedException
- ArrayTypeMismatchException
- NotSupportedException
- ArgumentNullException
- ObjectDisposedException
- RankException
- IndexOutOfRangeException
- OperationCanceledException
- TaskSchedulerException
- NullReferenceException
- FormatException
- AggregateException
 
 - 
closepublic void close() throws java.lang.Exception- Specified by:
- closein interface- java.lang.AutoCloseable
- Throws:
- java.lang.Exception
 
 - 
getIsCanceledpublic boolean getIsCanceled() throws java.lang.Throwable- Throws:
- java.lang.Throwable
 
 - 
getIsCompletedpublic boolean getIsCompleted() throws java.lang.Throwable- Throws:
- java.lang.Throwable
 
 - 
getIsCompletedSuccessfullypublic boolean getIsCompletedSuccessfully() throws java.lang.Throwable- Throws:
- java.lang.Throwable
 
 - 
getIsFaultedpublic boolean getIsFaulted() throws java.lang.Throwable- Throws:
- java.lang.Throwable
 
 - 
getIdpublic int getId() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, OutOfMemoryException, EventSourceException
 - 
getExceptionpublic AggregateException getException() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, TypeLoadException, NullReferenceException, OutOfMemoryException, FormatException - Throws:
- java.lang.Throwable
- ArgumentException
- ArgumentOutOfRangeException
- ArgumentNullException
- InvalidOperationException
- PlatformNotSupportedException
- ArrayTypeMismatchException
- NotSupportedException
- ObjectDisposedException
- RankException
- IndexOutOfRangeException
- TypeLoadException
- NullReferenceException
- OutOfMemoryException
- FormatException
 
 - 
getAsyncStatepublic NetObject getAsyncState() throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
getCompletedTaskpublic static Task getCompletedTask() throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
getCreationOptionspublic TaskCreationOptions getCreationOptions() throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
getFactorypublic static TaskFactory getFactory() throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
getStatuspublic TaskStatus getStatus() throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 
- 
 
-