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