(self, cb: Optional[int] = None)
| 24 | self.ql = ql |
| 25 | |
| 26 | def alloc(self, cb: Optional[int] = None) -> int: |
| 27 | idx = self.idx |
| 28 | self.idx += 1 |
| 29 | |
| 30 | self.fibers[idx] = Fiber(idx, cb) |
| 31 | |
| 32 | return idx |
| 33 | |
| 34 | def free(self, idx: int) -> bool: |
| 35 | if idx not in self.fibers: |
no test coverage detected