Create a gist now

Instantly share code, notes, and snippets.

Query := Object clone do(
delegate ::= nil
execute := method(
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment