Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 2592

Consecutively array map with async

$
0
0

There is a standard JS function called Array.fromAsync.

@scope("Array") @val
external fromAsync: (array<'a>, 'a => promise<'b>) => promise<array<'b>> = "fromAsync"

This has the advantage of keeping stack traces smaller.


Viewing all articles
Browse latest Browse all 2592

Trending Articles