Make coroutine.status use a string literal (#500)

Implements #495 
C++ isn't a language im very familliar with so this might be completely wrong
This commit is contained in:
T 'Filtered' C 2022-05-24 19:29:17 +01:00 committed by GitHub
parent fb9c4311d8
commit 69acf5ac07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ declare coroutine: {
create: <A..., R...>((A...) -> R...) -> thread,
resume: <A..., R...>(thread, A...) -> (boolean, R...),
running: () -> thread,
status: (thread) -> string,
status: (thread) -> "dead" | "running" | "normal" | "suspended",
-- FIXME: This technically returns a function, but we can't represent this yet.
wrap: <A..., R...>((A...) -> R...) -> any,
yield: <A..., R...>(A...) -> R...,