-
Notifications
You must be signed in to change notification settings - Fork 25
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
fix(deps): update amphp (master) (major) #792
base: master
Are you sure you want to change the base?
Conversation
⚠ Artifact update problemRenovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is. ♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below: File name: composer.lock
|
dd797f3
to
e4ddd29
Compare
e4ddd29
to
9789b8b
Compare
9789b8b
to
5f47325
Compare
e43bd26
to
964d862
Compare
964d862
to
bc277ca
Compare
bc277ca
to
84751aa
Compare
84751aa
to
489ebd1
Compare
489ebd1
to
67f64b4
Compare
2767520
to
07f32a3
Compare
07f32a3
to
31290f4
Compare
31290f4
to
ce2fa12
Compare
ce2fa12
to
d174be4
Compare
|
24e01e9
to
fc0fe7e
Compare
fc0fe7e
to
06d5168
Compare
06d5168
to
a5412f3
Compare
This PR contains the following updates:
^2.6.4
->^3.0.2
^1.4.3
->^2.3.0
Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
amphp/amp (amphp/amp)
v3.0.2
: 3.0.2Compare Source
What's Changed
Closure(mixed...)
annotation toClosure(...)
to support PHPStan.Full Changelog: amphp/amp@v3.0.1...v3.0.2
v3.0.1
: 3.0.1Compare Source
What's Changed
Amp\weakClosure()
with changes made to closure names in PHP 8.4.Full Changelog: amphp/amp@v3.0.0...v3.0.1
v3.0.0
: 3.0.0Compare Source
Event Loop
Amp no longer ships its own event loop. It's now based on Revolt.
Revolt\EventLoop
is quite similar to Amp's previousAmp\Loop
. A very important difference is usingfloat $seconds
instead ofint $milliseconds
for timers though!Promises
Future
is a replacement for the previousPromise
.There's no need for callbacks or
yield
anymore!Its
await()
method is based on fibers and replaces generator based coroutines /Amp\Promise\wait()
.Amp\Deferred
toAmp\DeferredFuture
.Amp\Promise\wait()
: UseAmp\Future::await()
instead, which can be called in any (nested) context unlike before.Amp\call()
: Remove the passed closure boilerplate and allyield
keywords, interruption is handled via fibers now instead of generator coroutines.Amp\asyncCall()
: Replace invocations withAmp\async()
, which starts a new fiber instead of using generators.Amp\coroutine()
: There's no direct replacement.Amp\asyncCoroutine()
: There's no direct replacement.Amp\Promise\timeout()
:Future::await()
accepts an optionalCancellation
, which can be used as a replacement.Amp\Promise\rethrow()
: Unhandled errors are now automatically thrown into the event loop, so there's no need for that function anymore.Future::ignore()
if needed, but should usually be handled in some way.Amp\Promise\wrap()
: UseFuture::finally()
instead.Amp\getCurrentTime()
toAmp\now()
returning the time in seconds instead of milliseconds.Amp\delay()
to accept the delay in seconds now instead of milliseconds.Amp\weakClosure()
to allow a class to hold a self-referencing Closure without creating a circular reference that prevents automatic garbage collection.Amp\trapSignal()
to await one or multiple signals.Promise Combinators
Promise combinators have been renamed:
Amp\Promise\race()
has been renamed toAmp\Future\awaitFirst()
Amp\Promise\first()
has been renamed toAmp\Future\awaitAny()
Amp\Promise\some()
has been renamed toAmp\Future\awaitAnyN()
Amp\Promise\any()
has been renamed toAmp\Future\awaitAll()
Amp\Promise\all()
has been renamed toAmp\Future\await()
CancellationToken
CancellationToken
has been renamed toCancellation
.CancellationTokenSource
has been renamed toDeferredCancellation
.NullCancellationToken
has been renamed toNullCancellation
.TimeoutCancellationToken
has been renamed toTimeoutCancellation
.CombinedCancellationToken
has been renamed toCompositeCancellation
.SignalCancellation
has been added.Iterators
Iterators have been removed from
amphp/amp
as normal PHP iterators can be used with fibers now and there's no need for a separate API.However, there's still some need for concurrent iterators, which is covered by the new
amphp/pipeline
library now.Closable
Amp\Closable
has been added as a new basic interface for closable resources such as streams or sockets.Strict Types
Strict types now declared in all library files.
This will affect callbacks invoked within this library's code which use scalar types as parameters.
Functions used with
Amp\async()
are the most likely to be affected by this change — these functions will now be invoked within a strict-types context.amphp/parallel (amphp/parallel)
v2.3.0
: 2.3.0Compare Source
What's Changed
LimitedWorkerPool
extendingWorkerPool
in https://github.com/amphp/parallel/pull/205.DelegatingWorkerPool
implementingLimitedWorkerPool
, which will only allow a limited number of workers to be pulled from a delegateWorkerPool
instance.ContextWorkerPool
also now implementsLimitedWorkerPool
, as this pool implementation was already spawned a limited number of workers.Full Changelog: amphp/parallel@v2.2.9...v2.3.0
v2.2.9
: 2.2.9Compare Source
What's Changed
SocketIpcHub
.Full Changelog: amphp/parallel@v2.2.8...v2.2.9
v2.2.8
: 2.2.8Compare Source
What's Changed
Thank you @Nadyita for reporting and debugging this issue.
v2.2.7
: 2.2.7Compare Source
What's Changed
Context
as covariant.Full Changelog: amphp/parallel@v2.2.6...v2.2.7
v2.2.6
: 2.2.6Compare Source
What's Changed
Full Changelog: amphp/parallel@v2.2.5...v2.2.6
v2.2.5
: 2.2.5Compare Source
What's Changed
DefaultContextFactory
was not shutdown.Full Changelog: amphp/parallel@v2.2.4...v2.2.5
v2.2.4
: 2.2.4Compare Source
What's Changed
SocketIpcHub
not removing the temporary socket file if the object was not explicitly closed before destruction (fixes #183).New Contributors
Full Changelog: amphp/parallel@v2.2.3...v2.2.4
v2.2.3
: 2.2.3Compare Source
What's Changed
SocketIpcHub::accept()
after cancelling a prior accept operation.Full Changelog: amphp/parallel@v2.2.2...v2.2.3
v2.2.2
: 2.2.2Compare Source
ProcessContext
created byDefaultContextFactory
if output buffers fill by piping STDOUT and STDERR to the same pipes on the parent process. This also provides parity with the default behavior ofThreadContext
.v2.2.1
: 2.2.1Compare Source
ContextWorkerPool
.ProcessContext
closing immediately after the process exited which potentially prevented reading the last sent data.v2.2.0
: 2.2.0Compare Source
Context::join()
may now be called at any time instead of needing to wait until the context has sent or received all data on its channel.ContextPanicError
,TaskFailureException
, andTaskFailureError
to avoid the backtrace being hidden from users due to PHP not callingThrowable::__toString()
on previous exceptions. (#168)ContextWorkerPool
. Previously, in some circumstances two tasks may have been assigned to a single worker if both were enqueued when the worker finished a prior task. (#177)v2.1.0
: 2.1.0Compare Source
ContextPanicError
is no longer thrown fromreceive()
,send()
, andjoin()
inContext
. OnlyContextException
can now be thrown from these methods. AContextPanicError
will be wrapped instead in aContextException
.v2.0.0
: 2.0.0Compare Source
Stable release compatible with AMPHP v3 and fibers! 🎉
As with other libraries compatible with AMPHP v3, most cases of parameters or returns of
Promise<ResolutionType>
have been replaced withResolutionType
.All classes related to
ext-pthreads
have been removed as this extension does not have releases on PHP 8.x.Classes in the
Amp\Parallel\Sync
namespace have been moved toamphp/sync
.Context
Process
renamed toProcessContext
Parallel
renamed toThreadContext
Context::isRunning()
andContext::kill()
replaced byContext::isClosed()
andContext::close()
run
→startContext
factory
→contextFactory
create
has been removed, usestartContext
ProcessContext
(including workers executing tasks), allowing step debugging through IDEs such as PhpStorm.ContextPanicError
orTaskFailureThrowable
to a string, i.e., when the exception is uncaught in the parent and is written to STDERRCancellation
argument toContextFactory::start()
Worker
Pool
renamed toWorkerPool
andDefaultPool
renamed toContextWorkerPool
TaskWorker
has been marked as internal. Use aWorkerFactory
to createWorker
instances or useWorkerPool::getWorker()
to get a worker from a poolTaskRunner
has been removedTaskException
andTaskError
Worker::enqueue()
renamed toWorker::submit()
, which now returns anExecution
objectExecution::getFuture()
returns a future that resolves to the eventual return value of theTask
Execution::await()
awaits the result of theTask
, it is a shortcut to callingExecution::getFuture()->await()
Execution::getChannel()
returns aChannel
that can be used to communicate with theChannel
provided toTask::run()
Task::run()
have changed toChannel
andCancellation
IpcHub
Inter-process communication is now exposed as part of the public API for potential use outside of the context and worker components.
Configuration
📅 Schedule: Branch creation - "before 5am on thursday" in timezone Europe/Vienna, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.