allow passing function pointers to Future::onError()