Promise Handling

Leveraging Grunfeld's Promise-based API allows you to implement complex asynchronous workflows cleanly.

Sequential Dialogs#

Display multiple dialogs sequentially:

Conditional Flow#

Determine the next dialog based on the result of the previous one:

Promise.race#

Handle whichever occurs first between timeout and user input:

Error Handling#

Handle errors that occur during async operations with dialogs:

Interruption Handling#

Detect interruptions caused by grunfeld.remove() or grunfeld.clear():

Promise Handling - Promise-based Workflows | ilokesto - React Library Collection