Skip to content

Instantly share code, notes, and snippets.

@evgkul
evgkul / yieldto.lua
Last active February 23, 2018 14:36
License: MIT
local resp = {}
resp._key = {}
local getcor = coroutine.running
local yield = coroutine.yield
local resume = coroutine.resume
local remove = table.remove
local status = coroutine.status
local unpack = unpack or table.unpack