-
-
Notifications
You must be signed in to change notification settings - Fork 181
Open
Description
We can use await in async catch block, but when execute to this catch block, the program may not in coroutine but in main lua thread.
Maybe we should fix it in this way?
export function __TS__Await(this: void, thing: unknown) {
if (!coroutine.running()) {
return thing;
}
return coyield(thing);
}Metadata
Metadata
Assignees
Labels
No labels