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";
}));