We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94729e2 commit acf82b8Copy full SHA for acf82b8
README.md
@@ -410,6 +410,8 @@ Due its non-deterministic behavior you must not use a `select` statement in work
410
var f1 workflow.Future[int]
411
var c workflow.Channel[int]
412
413
+value := 42
414
+
415
workflow.Select(
416
ctx,
417
workflow.Await(f1, func (ctx workflow.Context, f Future[int]) {
@@ -419,6 +421,9 @@ workflow.Select(
419
421
workflow.Receive(c, func (ctx workflow.Context, v int, ok bool) {
420
422
// use v
423
}),
424
+ workflow.Send(c, &value, func (ctx workflow.Context) {
425
+ // value has been sent to the channel
426
+ }),
427
workflow.Default(ctx, func (ctx workflow.Context) {
428
// ...
429
})
0 commit comments