🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

github.com/adjohnson916/actionscript-async

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/adjohnson916/actionscript-async

v0.0.0-20140428193108-3dd7cadda1ec
Source
Go
Version published
Created
Source

actionscript-async

Async utilities for ActionScript, in the style of the async module for Node.js.

Possible alternative to AS3Commons Async.

import com.AndersDJohnson.async.Async;

// ...

Async.tasks( [
  function ( callback:Function):void {
    // ...
    callback( null /* , ... args */ );
  },
  function ( callback:Function):void {
    // ...
    callback( null /* , ... args */ );
  }
  // ...
], function ( error:Error, results:Array ) {
  // results is now an array with results passed to each task function's callback
}

Examples

import com.AndersDJohnson.async.Async;

// ...

Async.tasks( [
  function ( callback:Function):void {
    callback( null, 'one', 1 );
  },
  function ( callback:Function):void {
    callback( null, 'two', 2 );
  }
], function ( error:Error, results:Array ) {
  // results is now equal to [ ['one', 1], ['two', 2] ] 
}

FAQs

Package last updated on 28 Apr 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts