Last active
March 3, 2016 02:38
-
-
Save jeremyheiler/876713b25536595c5d97 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyNotify | |
let env: Env | |
new create(env': Env) => | |
env = env' | |
fun ref apply(data: Array[U8] iso) => | |
env.out.print(consume data) | |
fun ref dispose() => | |
None | |
actor Main | |
new create(env: Env) => | |
env.input(recover iso MyNotify.create(env) end) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyNotify | |
let env: Env | |
new iso create(env': Env) => | |
env = env' | |
fun ref apply(data: Array[U8] iso) => | |
env.out.print(consume data) | |
fun ref dispose() => | |
None | |
actor Main | |
new create(env: Env) => | |
env.input(MyNotify.create(env)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment