This is a pretty cool use of coroutines.
I am trying a similar approach for a web browser base UI and was looking
for
a pattern do handle the time out case. So I send something to the UI, say
open
a dialog box, and suspend the coroutine. but the UI never responds so I
have to
have a loop checking time outs.
I would like something on the coroutine like suspend but throw an
exception in
x ms. I could do it with threads ( suspend a cancelling thread for x ms )
but I was
looking for a light weight approach.
Any thoughts on how to place a time out on a starved coroutine?
regards
mark
_______________________________________________
mlvm-dev mailing list
mlvm-dev@openjdk.java.net
http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev