export function isPromise (p?: any): p is Promise { return p?.then != null }