public
Last active

  • Download Gist
gistfile1.io
Io
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Query := Object clone do(
delegate ::= nil
execute := method(
if(delegate,
delegate executeQuery(self)
,
"Query execute" println
)
)
)
 
TimeoutDelegate := Object clone do(
executeQuery := method(query,
timeout(//Doesn't actually exist in Io. Would need to implement using yielding coros.
query execute
)
)
)
 
Query clone setDelegate(TimeoutDelegate clone) execute

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.