Adapt to Xs_client_lwt.IO signature.