Skip to content

Instantly share code, notes, and snippets.

View jackdotink's full-sized avatar

Jack jackdotink

  • 09:32 (UTC -05:00)
View GitHub Profile
local function resume_with_error_check(thread: thread, ...: any): ()
local success, message = coroutine.resume(thread, ...)
if not success then
print(string.char(27) .. "[31m" .. message)
end
end
type Task<T...> = thread | (T...) -> ...any