Interface IAimpServiceThreads
Namespace: AIMP.SDK.Threading
Assembly: AIMP.SDK.dll
Syntax
public interface IAimpServiceThreads
Methods
Cancel(UIntPtr, AimpServiceThreadPoolType)
Cancels the specified task.
Declaration
AimpActionResult Cancel(UIntPtr taskHandle, AimpServiceThreadPoolType flags)
Parameters
Type | Name | Description |
---|---|---|
System.UIntPtr | taskHandle | The task handle. |
AimpServiceThreadPoolType | flags | The flags. |
ExecuteInMainThread(IAimpTask, Boolean)
Executes the in main thread.
Declaration
AimpActionResult ExecuteInMainThread(IAimpTask task, bool executeNow)
Parameters
Type | Name | Description |
---|---|---|
IAimpTask | task | The task. |
System.Boolean | executeNow | True - the method will not return control until operation has been completed (Not recommended). Otherwise, task will be queued and executed when main thread is idle. Default value is False. |
ExecuteInThread(IAimpTask)
Executes the specified task.
Declaration
AimpActionResult<UIntPtr> ExecuteInThread(IAimpTask task)
Parameters
Type | Name | Description |
---|---|---|
IAimpTask | task | The task. |
WaitFor(UIntPtr)
Method provides an ability to wait for task completion.
Declaration
AimpActionResult WaitFor(UIntPtr taskHandle)
Parameters
Type | Name | Description |
---|---|---|
System.UIntPtr | taskHandle | The task handle. |