Skip to content

Commit

Permalink
Fix selector AddSend docs (temporalio#1254)
Browse files Browse the repository at this point in the history
  • Loading branch information
Quinn-With-Two-Ns authored Oct 3, 2023
1 parent 9228307 commit fecfba8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,8 @@ type (
// The branch is automatically removed after the channel is closed and callback function is called once
// with more parameter set to false.
AddReceive(c ReceiveChannel, f func(c ReceiveChannel, more bool)) Selector
// AddSend registers a callback function to be called when sending message to channel is not going to block.
// The callback is called when Select(ctx) is called.
// The sending message to the channel is expected to be done by the callback function
// AddSend registers a callback function to be called when a message is sent on a channel.
// The callback is called after the message is sent to the channel and Select(ctx) is called
AddSend(c SendChannel, v interface{}, f func()) Selector
// AddFuture registers a callback function to be called when a future is ready.
// The callback is called when Select(ctx) is called.
Expand Down

0 comments on commit fecfba8

Please sign in to comment.