From 816650ee587be3c3c4378287c422d269703b7ad8 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 16 Sep 2023 14:13:45 +0200 Subject: docs: add threadsafe flag to IFooFactory in async-factory example This makes the async-factory example work again --- examples/async-factory/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/async-factory/main.rs') diff --git a/examples/async-factory/main.rs b/examples/async-factory/main.rs index 3335700..a441842 100644 --- a/examples/async-factory/main.rs +++ b/examples/async-factory/main.rs @@ -16,7 +16,7 @@ trait IFoo: Send + Sync fn bar(&self); } -#[factory] +#[factory(threadsafe = true)] type IFooFactory = dyn Fn(i32) -> BoxFuture<'static, TransientPtr> + Send + Sync; -- cgit v1.2.3-18-g5258