continuations and nio in scala