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

Support for Asynchronous handling of Direct Methods #23

Open
z-br opened this issue Jun 1, 2020 · 0 comments
Open

Support for Asynchronous handling of Direct Methods #23

z-br opened this issue Jun 1, 2020 · 0 comments

Comments

@z-br
Copy link

z-br commented Jun 1, 2020

Because of how The Direct Method handler is implemented, there is no opportunity for asynchrony without blocking concurrent or future direct method requests. Ideally, instead of :

type DirectMethodHandler func(p map[string]interface{}) (map[string]interface{}, error)

It was something like:

type DirectMethodHandler func(input map[string]interface{},completion func(map[string]interface{}, error))

Or something channel based.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant