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

Feature request: Scoping events to a parent event #3525

Open
smunshimi opened this issue Sep 8, 2022 · 0 comments
Open

Feature request: Scoping events to a parent event #3525

smunshimi opened this issue Sep 8, 2022 · 0 comments
Labels
documentation Documentation requested

Comments

@smunshimi
Copy link

Description
Scoping events to a bucket?

  on<TriggerEvent>((event, emit) {
      
       add(SomeEvent());
      
    }, transformer: restartable());
Then if the event has let's say a sequential transformer:
       on<SomeEvent>((event, emit) {

       // do something

    }, transformer: sequential());

Is there a way to achieve scoping SomeEvent to TriggerEvent since it is the "parent" event?

Adding another TriggerEvent would cancel SomeEvent and restart it.

SomeEvent will be emitted sequentially since it has the sequential transformer but another TriggerEvent will still cancel the event and restart it.

How can this be achieved please?

@smunshimi smunshimi added the documentation Documentation requested label Sep 8, 2022
@smunshimi smunshimi changed the title docs: docs: Scoping events to a bucket? Sep 8, 2022
@smunshimi smunshimi changed the title docs: Scoping events to a bucket? docs: Scoping events to a parent event? Sep 16, 2022
@smunshimi smunshimi changed the title docs: Scoping events to a parent event? Feature request: Scoping events to a parent event Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Documentation requested
Projects
None yet
Development

No branches or pull requests

1 participant