crustphp/swoolecontext

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

Maintainers

Package info

github.com/crustphp/swoole-context

pkg:composer/crustphp/swoolecontext

Statistics

Installs: 19

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2025-02-24 13:23 UTC

This package is auto-updated.

Last update: 2026-02-24 15:36:52 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.