A Promises/A wrapper for Cadence functions.