提交学习笔记专用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
181 B

  1. module.exports = class {
  2. constructor(parent) {
  3. this.parent = parent;
  4. }
  5. batch(handler) {
  6. handler(this);
  7. return this;
  8. }
  9. end() {
  10. return this.parent;
  11. }
  12. };