Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix selector AddSend docs #1254

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading