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

Generalize asynchronous events #6092

Open
wants to merge 24 commits into
base: minor-next
Choose a base branch
from
Open

Commits on Oct 14, 2023

  1. temporaly add Promise::all

    code came from #6015 and will be subject to probable changes
    ShockedPlot7560 committed Oct 14, 2023
    Configuration menu
    Copy the full SHA
    5fe57a8 View commit details
    Browse the repository at this point in the history
  2. introduce AsyncEvent and ::callAsync()

    An asynchronous event is one that allows the addition of promises to be resolved before being completed.
    This implementation integrates priority levels, allowing you to wait for all promises added to one level before moving on to the next.
    This is made possible by separating the event call logic into several functions, which can then be integrated into AsyncEventTrait::callAsync()
    ShockedPlot7560 committed Oct 14, 2023
    Configuration menu
    Copy the full SHA
    a84fc2b View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2023

  1. events: asynchandler is defined by their return type and event type

    If the event is async and the handler return Promise, it will be handle as an async event.
    However, if the event is async and the handler return smth different than Promise, it will be handle synchronously.
    An async handler can specify if it wishes to be called with no concurrent handlers with the tag @noConcurrentCall
    ShockedPlot7560 committed Oct 22, 2023
    Configuration menu
    Copy the full SHA
    7a4b9a0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9b2b92a View commit details
    Browse the repository at this point in the history
  3. fix style

    ShockedPlot7560 committed Oct 22, 2023
    Configuration menu
    Copy the full SHA
    b78ff00 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c250bb0 View commit details
    Browse the repository at this point in the history
  5. fix PHPstan

    ShockedPlot7560 committed Oct 22, 2023
    Configuration menu
    Copy the full SHA
    58155a7 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2b2fa9d View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2023

  1. Update src/player/Player.php

    Co-authored-by: Javier León <58715544+JavierLeon9966@users.noreply.github.com>
    dktapps and JavierLeon9966 committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    1176b70 View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2023

  1. merge remote tracking

    ShockedPlot7560 committed Oct 27, 2023
    Configuration menu
    Copy the full SHA
    dc85bba View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ed739cf View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7e87fbb View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5beaa3c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    cc6e8ef View commit details
    Browse the repository at this point in the history
  6. fix PHPStan

    ShockedPlot7560 committed Oct 27, 2023
    Configuration menu
    Copy the full SHA
    ca95b2f View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    823d4ea View commit details
    Browse the repository at this point in the history
  8. follow up of #6110

    ShockedPlot7560 committed Oct 27, 2023
    Configuration menu
    Copy the full SHA
    243a303 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    aaa37ba View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2024

  1. Configuration menu
    Copy the full SHA
    f82c422 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    64bbff6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d6b7a9e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    eb98141 View commit details
    Browse the repository at this point in the history
  5. fix PHPstan

    ShockedPlot7560 committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    c1e3903 View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2024

  1. Configuration menu
    Copy the full SHA
    b276133 View commit details
    Browse the repository at this point in the history