diff options
author | HampusM <hampus@hampusmat.com> | 2023-09-16 14:13:45 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2023-09-16 14:14:46 +0200 |
commit | 816650ee587be3c3c4378287c422d269703b7ad8 (patch) | |
tree | 17d07515f78e669030e33f220c1d197d00151de2 /examples/async-factory/main.rs | |
parent | 88a6d31399bd14da6574471a8df4423e63ef340f (diff) |
docs: add threadsafe flag to IFooFactory in async-factory example
This makes the async-factory example work again
Diffstat (limited to 'examples/async-factory/main.rs')
-rw-r--r-- | examples/async-factory/main.rs | 2 |
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; |