diff --git a/src/context/mod.rs b/src/context/mod.rs index 5ac8084..69ca125 100644 --- a/src/context/mod.rs +++ b/src/context/mod.rs @@ -239,18 +239,17 @@ pub trait ContextClient<'ctx>: private::SealedContext<'ctx> { /// } /// /// # async fn handler(ctx: Context<'_>) { - /// let client = ctx.service_client::(); + /// let client = ctx.service_client::(); /// - /// // Do request - /// let result = client.handle().call().await; + /// // Do request + /// let result = client.handle().call().await; /// - /// // Just send the request, don't wait the response - /// client.handle().send(); - /// - /// // Schedule the request to be executed later - /// client.handle().send_with_delay(Duration::from_secs(60)); - /// } + /// // Just send the request, don't wait the response + /// client.handle().send(); /// + /// // Schedule the request to be executed later + /// client.handle().send_with_delay(Duration::from_secs(60)); + /// # } /// ``` fn service_client(&self) -> C where @@ -271,18 +270,17 @@ pub trait ContextClient<'ctx>: private::SealedContext<'ctx> { /// } /// /// # async fn handler(ctx: Context<'_>) { - /// let client = ctx.object_client::("my-key"); - /// - /// // Do request - /// let result = client.handle().call().await; + /// let client = ctx.object_client::("my-key"); /// - /// // Just send the request, don't wait the response - /// client.handle().send(); + /// // Do request + /// let result = client.handle().call().await; /// - /// // Schedule the request to be executed later - /// client.handle().send_with_delay(Duration::from_secs(60)); - /// } + /// // Just send the request, don't wait the response + /// client.handle().send(); /// + /// // Schedule the request to be executed later + /// client.handle().send_with_delay(Duration::from_secs(60)); + /// # } /// ``` fn object_client(&self, key: impl Into) -> C where @@ -303,18 +301,17 @@ pub trait ContextClient<'ctx>: private::SealedContext<'ctx> { /// } /// /// # async fn handler(ctx: Context<'_>) { - /// let client = ctx.workflow_client::("my-key"); - /// - /// // Do request - /// let result = client.handle().call().await; + /// let client = ctx.workflow_client::("my-key"); /// - /// // Just send the request, don't wait the response - /// client.handle().send(); + /// // Do request + /// let result = client.handle().call().await; /// - /// // Schedule the request to be executed later - /// client.handle().send_with_delay(Duration::from_secs(60)); - /// } + /// // Just send the request, don't wait the response + /// client.handle().send(); /// + /// // Schedule the request to be executed later + /// client.handle().send_with_delay(Duration::from_secs(60)); + /// # } /// ``` fn workflow_client(&self, key: impl Into) -> C where