UNPKG

envio

Version:

A latency and sync speed optimized, developer friendly blockchain data indexer.

26 lines (18 loc) 598 B
// Generated by ReScript, PLEASE EDIT WITH CARE 'use strict'; var Caml_js_exceptions = require("rescript/lib/js/caml_js_exceptions.js"); function noop() { } function silentCatch(promise) { return promise.catch(noop); } function $$catch(promise, callback) { return promise.catch(function (err) { return callback(Caml_js_exceptions.internalToOCamlException(err)); }); } var isCatchable = (value => value && typeof value.catch === 'function'); exports.silentCatch = silentCatch; exports.$$catch = $$catch; exports.isCatchable = isCatchable; /* No side effect */