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

38 feat asynchronous eventbus #43

Merged
merged 12 commits into from
Oct 5, 2024
Merged

Conversation

Qupiter
Copy link
Collaborator

@Qupiter Qupiter commented Sep 27, 2024

Description

Refactored EventBus to be able to handle asynchronous events.
Current Event interfaces are extended with StoppableEventInterface and EventDispatcherInterface

Type of change

  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Further testing should be conducted on real asynch events when the framework is build as a project.

Test Configuration:

  • Flexi version: dev
  • PHP version: 7.4

@Qupiter Qupiter linked an issue Sep 27, 2024 that may be closed by this pull request
@cbatista8a cbatista8a merged commit 4fecc81 into main Oct 5, 2024
@cbatista8a cbatista8a deleted the 38-feat-asynchronous-eventbus branch October 5, 2024 16:19
cbatista8a added a commit that referenced this pull request Oct 5, 2024
* feat: asychronous eventbus

* refactor: change method signature

* refactor: get Event name from method if instance of EventInterface

* fix: class factory now implement a cache system and call build method only the first time

* feat: implement Stoppable Events

* feat: add pcntl extension to Dockerfile for dev purposes

* refactor: delete notify method and use dispatch instead

* feat: add async mode to dispatch events

* [feat] - interface migration and unit tests

* refactor: move dispatch_mode check to the class with the closest responsibility

* fix: better handle of error when close resources

---------

Co-authored-by: Carlos Batista <[email protected]>
Co-authored-by: Carlos Batista <[email protected]>
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

Successfully merging this pull request may close these issues.

[FEAT] - Asynchronous EventBus
2 participants