aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/async-factory/main.rs2
1 files changed, 1 insertions, 1 deletions
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<dyn IFoo>> + Send + Sync;