File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -374,24 +374,24 @@ func timerproc(tb *timersBucket) {
374
374
可以留意一下这里的 period,有 period 的 timer 会从 when 开始,每隔 period 段时间,就再次触发。
375
375
376
376
```
377
- ┌─────────────┐
378
- │ when+period │
379
- └─────────────┘
380
- │
377
+
378
+ when+period
379
+ when+period*3
381
380
│
382
- │ ┌───────────────┐
383
- ┌──────┐ │ │ when+period*2 │
384
- │ when │ │ └───────────────┘
385
- └──────┘ │ │
386
- │ │ │
387
- │ │ │
388
- ┌───────────┐ │ │ │
389
- │ timeline ├────────────────────────┼───────┼───────┼─────────────────────────▷
390
- └───────────┘ │ │ │
391
- ▼ ▼ ▼
381
+ │ │
382
+ │ │
383
+ │ when+period*2│
384
+ when │ │
385
+ │ │ │
386
+ │ │ │ │ .....
387
+ │ │ │ │
388
+ ┌───────────┐ │ │ │ │
389
+ │ timeline ├────────────────────────┼───────┼───────┼───────┼─────────────────▷
390
+ └───────────┘ │ │ │ │
391
+ ▼ ▼ ▼ ▼
392
392
393
393
trigger trigger
394
- trigger
394
+ trigger trigger
395
395
396
396
```
397
397
You can’t perform that action at this time.
0 commit comments