crustphp/swoolecontext

A simple coroutine context manager based on swoole context feature for swoole framework

1.0.0 2025-02-24 13:23 UTC

This package is auto-updated.

Last update: 2025-02-24 13:31:02 UTC


README

The Swoole single-threaded model allows safely passing a coroutine ID of a coroutine to the context manager that is not the current coroutine. If no coroutine ID is passed, then the default behavior is to retrieve the context (array) of current coroutine.

To ensure so-called thread safety, the write operation API does not provide a cid parameter.