Top-level await

Saw that
shows how to use await inside RunKit directly.

This work currently because nodejs wrap the module in a function call. But it may not work in the future.

Some good read about this topic:

Hi Unional,

With RunKit we actually do our own transforms on user code, so top level awaits will always work in RunKit (unless of course we change it).


The examples at do not works anymore, I get Error: Cannot find module 'is-retry-allowed' exception when I try to run await example.

This is fixed now, sorry for the issues!