FutureTasks

Extends AsyncSimulation with callbacks that fulfil a Promise/Future.

This can be helpful for simulation implementations that use Futures to capture their asynchronous logic.

class Object
trait Matchable
class Any

Document{}

def futureTask(t: Task): Future[(TaskInstance, Long)]

Declare a new Task that needs to be sent for simulation with a pre-determined ID and a Future instead of a Callback.

Declare a new Task that needs to be sent for simulation with a pre-determined ID and a Future instead of a Callback.

Value Params
t

The Task to send.

Returns

A Future that completes when the Task is completed.