task_local context over context objects
- interner impls logically separate from API in orchid-base (default host interner still in base for testing) - error reporting, logging, and a variety of other features passed down via context in extension, not yet in host to maintain library-ish profile, should consider options - no global spawn mechanic, the host has a spawn function but extensions only get a stash for enqueuing async work in sync callbacks which is then explicitly, manually, and with strict order popped and awaited - still deadlocks nondeterministically for some ungodly reason
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
use orchid_extension::entrypoint::ExtensionData;
|
||||
use orchid_extension::entrypoint::ExtensionBuilder;
|
||||
use orchid_extension::tokio::tokio_main;
|
||||
use orchid_std::{MacroSystem, StdSystem};
|
||||
|
||||
#[tokio::main(flavor = "current_thread")]
|
||||
pub async fn main() {
|
||||
tokio_main(ExtensionData::new("orchid-std::main", &[&StdSystem, &MacroSystem])).await
|
||||
tokio_main(ExtensionBuilder::new("orchid-std::main").system(StdSystem).system(MacroSystem)).await
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user