📄️ \Co\sleep
The \Co\sleep function is used to suspend the current coroutine, giving up CPU resources, and other coroutines can continue to execute.
📄️ \Co\promise
Promise (promise/expiry mechanism) is a core concept in the ripple framework and is used to handle asynchronous operations. A Promise object represents the final completion or failure of an asynchronous operation, as well as its result value. Compared with Future, Promise provides a more intuitive API that is easier to understand and use.
📄️ \Co\async
Async in ripple is a core concept in the ripple framework and is used to handle asynchronous operations. Async objects represent the final completion or failure of an asynchronous operation, as well as its result value.
📄️ \Co\delay
ripple supports delayed execution of a closure function through the \Co\delay method, which is used to handle asynchronous operations.
📄️ \Co\repeat
Ripple supports repeatedly executing a closure function through the \Co\repeat method, which is used to handle scenarios such as scheduled tasks. Ripple will provide a `cancel` callback function for the closure function you submit. By calling the `cancel` function, you can cancel the current repeated task.
📄️ \Co\defer
ripple supports delayed execution of a closure function through the \Co\defer method, which is used to handle asynchronous operations.
📄️ \Co\cancel
Cancel (cancel), used to cancel an event, usually used to cancel asynchronous tasks, supports the cancellation of all events whose running context is defined as an independent fiber. Such as `delay`, `repeat`, `onSignal`, `defer`, etc.
📄️ \Co\signal
Signal in ripple is a core concept in the ripple framework and is used to process system signals. The Signal object represents the trigger of a system signal and its handler.
📄️ \Co\wait
The \Co\wait function is used to trigger all events, and ripple will start executing all events until it is idle.
📄️ 🎓advanced
Advanced usage in the ripple framework, including asynchronous operations, signal processing, sleep, futures mechanism, etc.