io_should_terminate_tw
tw.cancel = io_should_terminate_tw(ctx);
ts.cancel = io_should_terminate_tw(ctx);