ASPiK SDK
iasync.h
1 // This file is part of VSTGUI. It is subject to the license terms
2 // in the LICENSE file found in the top-level directory of this
3 // distribution and at http://github.com/steinbergmedia/vstgui/LICENSE
4 
5 #pragma once
6 
7 #include "fwd.h"
8 #include <functional>
9 
10 //------------------------------------------------------------------------
11 namespace VSTGUI {
12 namespace Standalone {
16 namespace Async {
17 
18 using Task = std::function<void ()>;
19 
20 //------------------------------------------------------------------------
22 enum class Context
23 {
25  Main,
28 };
29 
30 //------------------------------------------------------------------------
40 void perform (Context context, Task&& task);
41 
42 //------------------------------------------------------------------------
43 } // Async
44 } // Standalone
45 } // VSTGUI
Context
Definition: iasync.h:22
void perform(Context context, Task &&task)
Definition: macasync.mm:29
Definition: customcontrols.cpp:8