Skip to content
This repository was archived by the owner on Jan 17, 2024. It is now read-only.

Conversation

andrewloux
Copy link
Member

@andrewloux andrewloux commented Nov 10, 2019

This will enable plugin authors to handle messages concurrently

@andrewloux andrewloux added the wip label Nov 10, 2019
@andrewloux andrewloux changed the title [WIP] feat: add AsyncReplyFunc feat: add AsyncReplyFunc Nov 10, 2019
@andrewloux andrewloux removed the wip label Nov 10, 2019
Copy link
Collaborator

@katallaxie katallaxie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left some non-blocking comments for u.


// asyncHandleMessage is a helper used to
func (p *Plugin) asyncHandleMessage(c Context, fn SubscribeFunc) {
p.run(func() error {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will exit the exec for the whole plugin upon an error. Is this what u intended?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a comment here to provide more clarity

Copy link
Collaborator

@katallaxie katallaxie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@andrewloux andrewloux merged commit 1dd4360 into master Nov 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants