Download the PHP package themeplate/process without Composer
On this page you can find all versions of the php package themeplate/process. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download themeplate/process
More information about themeplate/process
Files in themeplate/process
Download themeplate/process
More information about themeplate/process
Files in themeplate/process
Vendor themeplate
Package process
Short Description ThemePlate background process
License GPL-3.0-only
Package process
Short Description ThemePlate background process
License GPL-3.0-only
Please rate this library. Is it a good library?
Informations about the package process
ThemePlate Process
Usage
new Async( $callback_func, $callback_args )
Execute a heavy one-off task via a non-blocking request
- $callback_func (callable)(Required) Function to run asynchronously
- $callback_args (array)(Optional) Parameters to pass in the callback. Default
null
->dispatch()
Fire off the process in the background instantly
->then( $callback )
->catch( $callback )
Chainable methods to handle success or error
- $callback (callable)(Optional)
new Tasks( $identifier )
- $identifier (string)(Required) Unique identifier
->add( $callback_func, $callback_args )
- $callback_func (callable)(Required) Function to run
- $callback_args (array)(Optional) Parameters to pass. Default
null
->remove( $callback_func, $callback_args )
- $callback_func (callable)(Required) Supposed function to run
- $callback_args (array)(Optional) The parameters passed. Default
null
->clear()
Remove all currently listed task
->limit( $number )
- $number (int)(Required) Number of task per run
->every( $second )
- $second (int)(Required) Interval between runs
->report( $callback )
- $callback (callable)(Required) To run after completion
Helper methods
->get_identifier()
->dump()
->is_running()
->next_scheduled()
->has_queued()
->get_queued()
All versions of process with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.4|^8.0
The package themeplate/process contains the following files
Loading the files please wait ....