@@ -239,18 +239,17 @@ pub trait ContextClient<'ctx>: private::SealedContext<'ctx> {
239
239
/// }
240
240
///
241
241
/// # async fn handler(ctx: Context<'_>) {
242
- /// let client = ctx.service_client::<MyServiceClient>();
242
+ /// let client = ctx.service_client::<MyServiceClient>();
243
243
///
244
- /// // Do request
245
- /// let result = client.handle().call().await;
244
+ /// // Do request
245
+ /// let result = client.handle().call().await;
246
246
///
247
- /// // Just send the request, don't wait the response
248
- /// client.handle().send();
249
- ///
250
- /// // Schedule the request to be executed later
251
- /// client.handle().send_with_delay(Duration::from_secs(60));
252
- /// }
247
+ /// // Just send the request, don't wait the response
248
+ /// client.handle().send();
253
249
///
250
+ /// // Schedule the request to be executed later
251
+ /// client.handle().send_with_delay(Duration::from_secs(60));
252
+ /// # }
254
253
/// ```
255
254
fn service_client < C > ( & self ) -> C
256
255
where
@@ -271,18 +270,17 @@ pub trait ContextClient<'ctx>: private::SealedContext<'ctx> {
271
270
/// }
272
271
///
273
272
/// # async fn handler(ctx: Context<'_>) {
274
- /// let client = ctx.object_client::<MyObjectClient>("my-key");
275
- ///
276
- /// // Do request
277
- /// let result = client.handle().call().await;
273
+ /// let client = ctx.object_client::<MyObjectClient>("my-key");
278
274
///
279
- /// // Just send the request, don't wait the response
280
- /// client.handle().send() ;
275
+ /// // Do request
276
+ /// let result = client.handle().call().await ;
281
277
///
282
- /// // Schedule the request to be executed later
283
- /// client.handle().send_with_delay(Duration::from_secs(60));
284
- /// }
278
+ /// // Just send the request, don't wait the response
279
+ /// client.handle().send();
285
280
///
281
+ /// // Schedule the request to be executed later
282
+ /// client.handle().send_with_delay(Duration::from_secs(60));
283
+ /// # }
286
284
/// ```
287
285
fn object_client < C > ( & self , key : impl Into < String > ) -> C
288
286
where
@@ -303,18 +301,17 @@ pub trait ContextClient<'ctx>: private::SealedContext<'ctx> {
303
301
/// }
304
302
///
305
303
/// # async fn handler(ctx: Context<'_>) {
306
- /// let client = ctx.workflow_client::<MyWorkflowClient>("my-key");
307
- ///
308
- /// // Do request
309
- /// let result = client.handle().call().await;
304
+ /// let client = ctx.workflow_client::<MyWorkflowClient>("my-key");
310
305
///
311
- /// // Just send the request, don't wait the response
312
- /// client.handle().send() ;
306
+ /// // Do request
307
+ /// let result = client.handle().call().await ;
313
308
///
314
- /// // Schedule the request to be executed later
315
- /// client.handle().send_with_delay(Duration::from_secs(60));
316
- /// }
309
+ /// // Just send the request, don't wait the response
310
+ /// client.handle().send();
317
311
///
312
+ /// // Schedule the request to be executed later
313
+ /// client.handle().send_with_delay(Duration::from_secs(60));
314
+ /// # }
318
315
/// ```
319
316
fn workflow_client < C > ( & self , key : impl Into < String > ) -> C
320
317
where
0 commit comments