-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
(Logging some features discussed during the hackaton, which are not currently available at least to my knowledge)
a catch() api, similar to Promise.catch().
Right now there doesn't seem to be way to know if there was an error, unless some workaround using timeouts?
export function brapiAll(brapi: any, timeout = 5000): Promise<any> {
return new Promise((resolve, reject) => {
brapi.all((res: any) => resolve(res));
setTimeout(reject, timeout);
});
}sebastian-raubach
Metadata
Metadata
Assignees
Labels
No labels