view testpauseresume.rhope @ 143:ff00538cd818

Add TCP Connection type and implement Write and Close methods
author Mike Pavone <pavone@retrodev.com>
date Sun, 21 Nov 2010 17:10:49 -0500
parents f2cb85c53ced
children
line wrap: on
line source


Foo[:out]
{
	a <- Yield[]
	Val[a]
	{ out <- Print["Foo!"] }
}

Main[:out]
{
	Call Async[Foo[?]]
	{ got char <- Get Char[] }
	Val[got char]
	{ out <- Yield[] }
}