I think the continuation should be called when data is sent, i.e. in the callback.