Event is a commonly accepted term for what the Pledge is doing.
Hence we should rename Pledge to FlowEvent
In parallel, spawnDelayed should be renamed spawnOnEvent.
And the dependsOn clause in parallelFor should be renamed waitForEvent to ease grep-ing for event-based / dataflow-based constructs.
Dataflow parallelism was introduced in #94.
The term
Pledge
was coined as a parallel to Promises in the Async world.However the term does not sound intuitive even though the concept is actually simple.
Besides, from looking into:
cudaEvent_t
: #133cl_event
: #134Event
is a commonly accepted term for what thePledge
is doing.Hence we should rename
Pledge
toFlowEvent
In parallel,
spawnDelayed
should be renamedspawnOnEvent
. And thedependsOn
clause in parallelFor should be renamedwaitForEvent
to ease grep-ing for event-based / dataflow-based constructs.