📚 [Tutorial] Timed Decision

by Herman Semin

Version 1 (August 9, 2020)

Download (6 downloads)

Difficulty: medium (6 blocks)
Create decisions (or any other user inputs) with timeout. Automate has timeout on decisions, however, it is considered a 'negative' input, like cancellation.

Explanation:
Fork the thread into two subthreads (at block 4) — UI thread (which runs decision window) and timer thread (which kills the UI thread). Show a decision window in UI thread, wire every input branch to 'stop fiber' block (blocks 6, 10) which will stop the timer thread. In timer thread set your desired delay (block 7) before stopping UI thread (block 8) and handling the decision timeout in separate way (block 9.)

3.5 average rating from 2 reviews

5 stars
1
4 stars
0
3 stars
0
2 stars
1
1 star
0
Reports
0

Reviews and ratings can be submitted in the app.