Skip to main content

cotis_start_async

Attribute Macro cotis_start_async 

Source
#[cotis_start_async]
Expand description

Registers an asynchronous application entry point for platform-controlled launch.

The annotated function must take no parameters. It may be async or return immediately; either way it is boxed into the future awaited by cotis::launch::cotis_launch_async.

§Examples

use cotis_macros::cotis_start_async;

#[cotis_start_async]
async fn start() {
    // Async application setup and UI loop.
}