aboutsummaryrefslogtreecommitdiff
path: root/examples/async-factory
diff options
context:
space:
mode:
Diffstat (limited to 'examples/async-factory')
-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 2b796cc..795e50c 100644
--- a/examples/async-factory/main.rs
+++ b/examples/async-factory/main.rs
@@ -84,7 +84,7 @@ async fn main() -> Result<()>
di_container
.bind::<dyn IPerson>()
- .to_async_default_factory(&|_| {
+ .to_async_dynamic_value(&|_| {
Box::new(|| {
Box::pin(async {
// Do some time demanding thing...