Interface IAimpServiceSynchronizer
This service provides an ability to run specified task in main thread of the application. Implements the IAimpService
Inherited Members
Namespace: AIMP.SDK.Threading
Assembly: AIMP.SDK.dll
Syntax
[Obsolete("Use IAimpServiceThreads")]
public interface IAimpServiceSynchronizer : IAimpService
Methods
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. |