Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function send (x)
- coroutine.yield(x)
- end
- local producer = coroutine.create(function ()
- while true do
- send(io.read())
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement