Files
igny8/frontend/node_modules/@react-dnd/asap/dist/RawTask.js
2025-11-09 10:27:02 +00:00

20 lines
446 B
JavaScript

// `call`, just like a function.
export class RawTask {
call() {
try {
this.task && this.task();
} catch (error) {
this.onError(error);
} finally{
this.task = null;
this.release(this);
}
}
constructor(onError, release){
this.onError = onError;
this.release = release;
this.task = null;
}
}
//# sourceMappingURL=RawTask.js.map