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 Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798estatic java.lang.String
assemblyShortName
Assembly name: System.Private.CoreLibstatic java.lang.String
className
Qualified class name: System.Threading.Tasks.Taskstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors 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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Task
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoTask
, 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 namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class TypeTaskStatus
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()
boolean
Wait(int millisecondsTimeout)
boolean
Wait(int millisecondsTimeout, CancellationToken cancellationToken)
void
Wait(CancellationToken cancellationToken)
boolean
Wait(TimeSpan timeout)
boolean
Wait(TimeSpan timeout, CancellationToken cancellationToken)
static void
WaitAll(Task... tasks)
static boolean
WaitAll(Task[] tasks, int millisecondsTimeout)
static boolean
WaitAll(Task[] tasks, int millisecondsTimeout, CancellationToken cancellationToken)
static void
WaitAll(Task[] tasks, CancellationToken cancellationToken)
static boolean
WaitAll(Task[] tasks, TimeSpan timeout)
static int
WaitAny(Task... tasks)
static int
WaitAny(Task[] tasks, int millisecondsTimeout)
static int
WaitAny(Task[] tasks, int millisecondsTimeout, CancellationToken cancellationToken)
static int
WaitAny(Task[] tasks, 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()
-
-
-
Field Detail
-
assemblyFullName
public 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
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Private.CoreLib- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Threading.Tasks.Task- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Task
public Task(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
Task
public Task() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Task
public Task(Action action, CancellationToken cancellationToken, TaskCreationOptions creationOptions) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException
-
Task
public Task(Action action, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException
-
Task
public Task(Action action, TaskCreationOptions creationOptions) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException
-
Task
public Task(Action action) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classNetObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static Task cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoTask
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
Task
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
Wait
public boolean Wait(int millisecondsTimeout, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, EventSourceException, TaskSchedulerException, NullReferenceException, OperationCanceledException, OutOfMemoryException, FormatException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
EventSourceException
TaskSchedulerException
NullReferenceException
OperationCanceledException
OutOfMemoryException
FormatException
-
Wait
public boolean Wait(int millisecondsTimeout) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, TaskSchedulerException, NullReferenceException, OperationCanceledException, FormatException, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
TaskSchedulerException
NullReferenceException
OperationCanceledException
FormatException
ArgumentNullException
-
Wait
public boolean Wait(TimeSpan timeout, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, OperationCanceledException, TaskSchedulerException, NullReferenceException, FormatException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
OperationCanceledException
TaskSchedulerException
NullReferenceException
FormatException
-
Wait
public boolean Wait(TimeSpan timeout) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, OperationCanceledException, TaskSchedulerException, NullReferenceException, OutOfMemoryException, IndexOutOfRangeException, FormatException, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
OperationCanceledException
TaskSchedulerException
NullReferenceException
OutOfMemoryException
IndexOutOfRangeException
FormatException
ArgumentNullException
-
WaitAll
public 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
-
WaitAll
public 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
-
WaitAll
public 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
-
WaitAny
public 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
-
WaitAny
public 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
-
WaitAny
public 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
-
WaitAny
public 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
-
WaitAny
public 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
-
ConfigureAwait
public ConfiguredTaskAwaitable ConfigureAwait(boolean continueOnCapturedContext) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ConfigureAwait
public ConfiguredTaskAwaitable ConfigureAwait(ConfigureAwaitOptions options) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
GetAwaiter
public TaskAwaiter GetAwaiter() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Yield
public static YieldAwaitable Yield() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Delay
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
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
EventSourceException
IndexOutOfRangeException
NullReferenceException
LockRecursionException
AbandonedMutexException
OutOfMemoryException
-
Delay
public static Task Delay(int millisecondsDelay) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, NullReferenceException, ArgumentNullException, LockRecursionException, OutOfMemoryException
-
Delay
public static Task Delay(TimeSpan delay, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NullReferenceException, LockRecursionException, OutOfMemoryException
-
Delay
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
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
EventSourceException
IndexOutOfRangeException
NullReferenceException
LockRecursionException
AbandonedMutexException
OutOfMemoryException
-
Delay
public static Task Delay(TimeSpan delay, TimeProvider timeProvider) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NullReferenceException, LockRecursionException, OutOfMemoryException
-
Delay
public static Task Delay(TimeSpan delay) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NullReferenceException, LockRecursionException, OutOfMemoryException
-
FromCanceled
public static Task FromCanceled(CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
FromException
public static Task FromException(NetException exception) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, NullReferenceException
-
Run
public 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
-
Run
public 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
-
WaitAsync
public Task WaitAsync(CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NullReferenceException, LockRecursionException, AbandonedMutexException, OutOfMemoryException
-
WaitAsync
public Task WaitAsync(TimeSpan timeout, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NullReferenceException, LockRecursionException, AbandonedMutexException, OutOfMemoryException
-
WaitAsync
public 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
-
WaitAsync
public 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
-
WaitAsync
public Task WaitAsync(TimeSpan timeout) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NullReferenceException, LockRecursionException, AbandonedMutexException, OutOfMemoryException
-
WhenAll
public 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
-
Dispose
public void Dispose() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
PlatformNotSupportedException
-
RunSynchronously
public void RunSynchronously() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, NullReferenceException, ArgumentNullException, IndexOutOfRangeException, OperationCanceledException
-
RunSynchronously
public void RunSynchronously(TaskScheduler scheduler) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, NullReferenceException, OperationCanceledException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ArgumentNullException
ObjectDisposedException
RankException
IndexOutOfRangeException
NullReferenceException
OperationCanceledException
-
Start
public void Start() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NullReferenceException, IndexOutOfRangeException, OutOfMemoryException
-
Start
public 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
-
Wait
public void Wait() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, TaskSchedulerException, NullReferenceException, OperationCanceledException, FormatException, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
TaskSchedulerException
NullReferenceException
OperationCanceledException
FormatException
ArgumentNullException
-
Wait
public void Wait(CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, TaskSchedulerException, NullReferenceException, OperationCanceledException, FormatException, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
TaskSchedulerException
NullReferenceException
OperationCanceledException
FormatException
ArgumentNullException
-
WaitAll
public 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
-
WaitAll
public 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
-
close
public void close() throws java.lang.Exception
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Throws:
java.lang.Exception
-
getIsCanceled
public boolean getIsCanceled() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsCompleted
public boolean getIsCompleted() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsCompletedSuccessfully
public boolean getIsCompletedSuccessfully() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsFaulted
public boolean getIsFaulted() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getId
public int getId() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, OutOfMemoryException, EventSourceException
-
getException
public 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
-
getAsyncState
public NetObject getAsyncState() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getCompletedTask
public static Task getCompletedTask() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getCreationOptions
public TaskCreationOptions getCreationOptions() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getFactory
public static TaskFactory getFactory() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getStatus
public TaskStatus getStatus() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-