xp_null_exhaust

xp_null_exhaust($process)

Nullifies a processes exhaustion rate.

Note

Once a process is registered with a null exhaust it will never be purged from the processor unless a xp_flush is called.

Parameters:callable|process – PHP Callable or Process.
Return type:object Process

Example #1 Basic Usage

This example installs a null exhaust process which calls an awake signal every 10 seconds creating an interval.

<?php
import('time');

time\awake(10, xp_null_exhaust(function(){
    echo "10 seconds";
}));
Read the Docs v: v5.0.1
Versions
latest
v5.0.1
v5.0.0
v4.0.1
v4.0.0
v3.1.1
v3.1.0
v3.0.0
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.