hybrid_then function

Asynchronous or synchronous then()