gdnative_async/lib.rs
1//! Runtime async support for godot-rust.
2//!
3//! This crate contains types and functions that enable using async code with godot-rust.
4//!
5//! # Safety assumptions
6//!
7//! This crate assumes that all user non-Rust code follow the official threading guidelines.
8
9// Workaround for macros that expect the `gdnative` crate.
10extern crate gdnative_core as gdnative;
11
12mod executor;
13mod future;
14mod method;
15mod rt;
16
17pub use executor::{set_boxed_executor, set_executor};
18pub use future::Yield;
19pub use method::{Async, AsyncMethod, Spawner, StaticArgs, StaticArgsAsyncMethod};
20pub use rt::{register_runtime, terminate_runtime, Context};