10 lines
229 B
Lua
10 lines
229 B
Lua
local Rx = require 'rx'
|
|
|
|
-- Observable created from a coroutine that produces two values.
|
|
local cr = coroutine.create(function()
|
|
coroutine.yield('hello')
|
|
return 'world'
|
|
end)
|
|
|
|
Rx.Observable.fromCoroutine(cr):dump('coroutine')
|