PHP Classes

File: examples/04-async-in-order.md

Recommend this page to a friend!
  Packages of Max   Fenrir   examples/04-async-in-order.md   Download  
File: examples/04-async-in-order.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: Fenrir
Use Discord services using the Web services API
Author: By
Last change:
Date: 4 months ago
Size: 340 bytes
 

 

Contents

Class file image Download

Async in order

Sometimes you may need to execute several async actions in order. This can be accomplished using (among others) a recursive anonymous.

This example shows how to send several messages in order, you can also abstract this further to an array of anonymous functions returning a promise, which you can then use everywhere.