Create a JSPromise from a Dart function that returns a Future
JSPromise<T> promise<T extends JSAny?>( Future<T> Function() function, ) => function().toJS;