mt-spec Pub Share

Diesel Multithreaded/async features

Fire and forget:

$when:: testdiesel.mt.fireForget (var)
   testdiesel.mt.child1 (var)

$when:: testdiesel.mt.child1 (var)
   ctx.sleep (duration:Number=300=300)
   . (payload=(var + 1))

Fire and wait

$when:: testdiesel.mt.requestResponse (var)
   testdiesel.mt.child1 (var)

Fire and wait in parallel (fork/join)

$when:: testdiesel.mt.forkJoin (var)
   testdiesel.mt.child1 (var)
   testdiesel.mt.child1 (var)
   testdiesel.mt.child1 (var)

$flow:: testdiesel.mt.forkJoin => testdiesel.mt.child1


Was this useful?    

By: Razie | 2020-10-03 .. 2021-02-02 | Tags: spec , dsl , private


Viewed 906 times ( | History | Print ) this page.

You need to log in to post a comment!

© Copyright DieselApps, 2012-2024, all rights reserved.