Skip to content

🧱 CancellationToken #23

@karafra

Description

@karafra

Would it be possible to add support for cancelling tasks, main method that needs this is NextTweetStreamAsync because as of now it is not possible to stop stream execution. This causes multiple problems:

  • NextTweetStreamAsync is effectively blocking call, cannot be stopped in any way
  • Implementation of handler function is effectively locked and can be changed only in very stupid ways

Off the top of my head there are two solutions to this situation

  • Exposing streams with tweets to users
  • Adding support for CancellationToken (this ticket)

If you do not see any problems with this ticket I am willing to make PR to fix this problem.

I thank for your response in advance πŸ™πŸΌ

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions