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