Skip to content

Instantly share code, notes, and snippets.

@evgkul
evgkul / yieldto.lua
Last active Feb 23, 2018
License: MIT
View yieldto.lua
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