Asynchronous Processing
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Component created
Component changed
Component body
What is Asynchronous Processing?
Asynchronous Processing is a module designed to call back ground process in Drupal.
What does it do?
The Asynchronous Processing will separate the Drupal task to mutil-process (as background process ).
It could be used for executing long-running tasks in the background, such as tasks involving significant network activity or encoding video, send an email etc.
Installation
1, Download & Copy this module to sites/all/modules folder.
2, Enable Asynchronous Processing modules
API
function async_launch_process
param: $async_defination: the array define function will be call
Example:
/*
* Overide drupal mail
* replace to call function drupal_mail($module, $key, $to, $language, $params, $from, $send)
* */
function async_drupal_mail($module, $key, $to, $language, $params = array(), $from = NULL, $send = TRUE){
$async_defination = array('drupal_mail', $module, $key, $to, $language, $params, $from, $send);
return async_launch_process($async_defination);
}
