Blame view

天文台pc/tianwentai-ui/node_modules/@react-dnd/asap/dist/RawTask.js 446 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  // `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