AsyncTaskFunc

Inheritance: java.lang.Object, com.aspose.ms.System.Delegate, com.aspose.ms.System.MulticastDelegate

public abstract class AsyncTaskFunc extends System.MulticastDelegate

The long operation delegate for the asynchronous task with generic type result.

Constructors

ConstructorDescription
AsyncTaskFunc()

Methods

MethodDescription
invoke(IAsyncTaskState taskState)The long operation delegate for the asynchronous task with generic type result.
beginInvoke(IAsyncTaskState taskState, System.AsyncCallback callback, Object state)
endInvoke(System.IAsyncResult result)

AsyncTaskFunc()

public AsyncTaskFunc()

invoke(IAsyncTaskState taskState)

public abstract Object invoke(IAsyncTaskState taskState)

The long operation delegate for the asynchronous task with generic type result.

Parameters:

ParameterTypeDescription
taskStateIAsyncTaskStateState of the asynchronous task.

Returns: java.lang.Object - Result of the long operation.

beginInvoke(IAsyncTaskState taskState, System.AsyncCallback callback, Object state)

public final System.IAsyncResult beginInvoke(IAsyncTaskState taskState, System.AsyncCallback callback, Object state)

Parameters:

ParameterTypeDescription
taskStateIAsyncTaskState
callbackcom.aspose.ms.System.AsyncCallback
statejava.lang.Object

Returns: com.aspose.ms.System.IAsyncResult

endInvoke(System.IAsyncResult result)

public final Object endInvoke(System.IAsyncResult result)

Parameters:

ParameterTypeDescription
resultcom.aspose.ms.System.IAsyncResult

Returns: java.lang.Object