Asynk

Categories

Component ID

2883016

Component name

Asynk

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

Process heavy tasks in Drupal asynchronously with ease.

Sample Usage

In order to execute a heave function

// Execute the heavy task asynchronously.
asynk('sample_heavy_task', $key, $lan);

// Send email to 10 people.
function sample_heavy_task($key, $lan) {
  for ($i = 0; $i < 10; $i ++) {
    drupal_mail('my_module', $key, 'sample@sample.com', $lan);
  }
}