rewrite Asyncs.constant() and Asyncs.Failure() for performance reasons