Skip to main content
Documentation

Concurrency

Intelligent Functions support concurrency via specific built-in functions of the Function Development Kit (FDK).

Async

The async methods evaluate a given expression asynchronously and return a Future object.
Asynchronous evaluation
diafunc.async(() -> {
   // async code ...
});

Future

The Future object provides access to the result of an asynchronous evaluation.
Asynchronous result
var future = diafunc.async(() -> 1);
var mappedResult = future.map(r -> r + 1).get();

What next?