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

[2.x] Add new delay() function to delay program execution #72

Merged
merged 1 commit into from
Dec 11, 2022

Conversation

clue
Copy link
Member

@clue clue commented Dec 7, 2022

This changeset backports #69 from 4.x to 2.x (see also #71 for same changes in 3.x). Documentation and tests have been updated because only v4 offers an async() function that takes advantage of fibers (PHP 8.1+). The v2 version may block the loop, but otherwise offers the same API to provide a smoother upgrade path towards the fiber-based delay() available in v4.

Builds on top of #69
Refs #15 and #11

@clue clue added the new feature New feature or request label Dec 7, 2022
@clue clue added this to the v2.1.0 milestone Dec 7, 2022
@WyriHaximus WyriHaximus merged commit 3ae32f1 into reactphp:2.x Dec 11, 2022
@clue clue deleted the delay-v2 branch December 11, 2022 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants