Commit 98d2a09
committed
Introduce GoPool interface and update NewGoPool function
- Introduced a new GoPool interface that includes all public methods of the goPool struct.
- Updated the NewGoPool function to return the GoPool interface instead of the goPool struct.
- This change makes the GoPool interface visible outside the package and allows for future extensions with different GoPool implementations.
Signed-off-by: Daniel Hu <tao.hu@merico.dev>1 parent 2ea0ed3 commit 98d2a09
2 files changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
9 | 16 | | |
10 | 17 | | |
11 | 18 | | |
| |||
37 | 44 | | |
38 | 45 | | |
39 | 46 | | |
40 | | - | |
| 47 | + | |
41 | 48 | | |
42 | 49 | | |
43 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
0 commit comments