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

[11.x] Move Defer classes to Support component and add Illuminate\Support\defer function #52801

Merged
merged 10 commits into from
Sep 17, 2024

Conversation

crynobone
Copy link
Member

Also avoid using global defer() function when it can be defined in environment such as Swoole

Also avoid using global `defer()` function when it can be defined in
environment such as Swoole

Signed-off-by: Mior Muhammad Zaki <[email protected]>
Signed-off-by: Mior Muhammad Zaki <[email protected]>
Signed-off-by: Mior Muhammad Zaki <[email protected]>
@crynobone crynobone marked this pull request as ready for review September 16, 2024 01:17
@@ -3,7 +3,7 @@
namespace Illuminate\Contracts\Concurrency;

use Closure;
use Illuminate\Foundation\Defer\DeferredCallback;
use Illuminate\Concurrency\Defer\DeferredCallback;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@taylorotwell This might be a breaking change but as Concurrency is still in beta we might allow it.

@crynobone crynobone linked an issue Sep 16, 2024 that may be closed by this pull request
@rodrigopedra
Copy link
Contributor

Doesn't the require section on composer.json missing some components?

For example, illuminate/support?

@taylorotwell
Copy link
Member

@crynobone personally I would maybe put this in Support instead of Concurrency.

@taylorotwell taylorotwell marked this pull request as draft September 16, 2024 19:25
Signed-off-by: Mior Muhammad Zaki <[email protected]>
Signed-off-by: Mior Muhammad Zaki <[email protected]>
Signed-off-by: Mior Muhammad Zaki <[email protected]>
@crynobone
Copy link
Member Author

@taylorotwell moved to Support

@crynobone crynobone marked this pull request as ready for review September 16, 2024 23:39
@crynobone crynobone changed the title [11.x] Move Defer classes to Concurrency component [11.x] Move Defer classes to Support component and add Illuminate\Support\defer function Sep 17, 2024
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.

Conflict with Swoole's defer() function in Laravel
3 participants