-
Notifications
You must be signed in to change notification settings - Fork 124
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 EventChannel(s) #16
Comments
This is possible, but will become a total different set of APIs. Maybe the foreground dispatch mode mentioned in #17 can work together with this Stream-like API. |
How about this,
|
I'll create pull request (If required) which will implement this feature and will not affect existing functionality. Here's what will be changed: New Class TagPollOptions will be Introduced: ` final Duration? timeout; New method to set options for stream:
New stream:
|
@luckycreationsindia It is great if you could submit a PR on EventChannel support. Looking forward to it! |
It won't be EventChannel but layer in flutter itself. Let me paste the line of code before committing. If it's good to go will commit changes. Also TagPollOptions class is as mentioned above. ` static set setTagStreamOptions(TagPollOptions? options) { static Stream tags = Stream.fromFuture(poll( |
I've created EventChannel Support for streaming and pull request is added for the same with other information. Note:
|
Recommend supporting Streams through
EventChannel
, as it makes some operations easier (like having a listener running in the background).Then it would be possible to having a simple API like:
Just a suggestion. Sadly I have no time to do a PR.
The text was updated successfully, but these errors were encountered: