Async.apex

Async.apex is a promise-like library to handle asynchronous Apex code neatly.

Why Async.apex?

Async.apex allows a better way to manage synchronous code and asynchronous code in Apex. With Async.apex, you can shift code between synchronous and asynchronous in a promise chain, without losing readability.

Code Chaining

Async.apex chains sync/async codes together, hiding implementation details.

Functional Style

Async.apex adopts functional style programming, and integrates well with R.apex

Lazy Execution

Async.apex creates lazy promises, which start execution only when triggered.

Simple API

Async.apex has fairly simple APIs and you can easily get started with it.

Fluent API

Async.apex has a fluent API that provides most of the Promise features.

Fluent API

Functional Style

Async.apex can be used seamlessly with R.apex in a functional style.

Collection Support
Function Composition