📄️ sleep - \Co\sleep
The \Co\sleep function is used to suspend the current coroutine, giving up CPU resources, and other coroutines can continue to execute.
📄️ Promise - \Co\promise
Promise (commitment/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.
📄️ asynchronous - \Co\async
Async (asynchronous) 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.
📄️ delay - \Co\delay
Ripple supports delayed execution of a closure function through the \Co\delay method, which is used to handle asynchronous operations.
📄️ redo - \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.
📄️ defer - \Co\defer
Ripple supports delayed execution of a closure function through the \Co\defer method, which is used to handle asynchronous operations.
📄️ Cancel - \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.
📄️ signal - \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.
📄️ trigger - \Co\tick
The \Co\tick function is used to trigger all events. Ripple will start executing all events until it is idle.
📄️ Advanced Usage - Professional
Advanced usage in the Ripple framework, including asynchronous operations, signal processing, sleep, futures mechanism, etc.