This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
论坛
实训
竞赛
大数据
AI开发
Register
Sign In
JointCloud
/
common
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
0
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
合并之前的改动
feature_sjc_debug
Sydonian
1 year ago
parent
3a29857996
commit
9ba298c0c8
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
utils/sync2/safe_channel.go
+ 1
- 1
utils/sync2/safe_channel.go
View File
@@ -8,7 +8,7 @@ type SafeChannel[T any] struct {
cacnel func()
}
func NewChannel[T any]() SafeChannel[T] {
func New
Safe
Channel[T any]() SafeChannel[T] {
ctx, cancel := context.WithCancel(context.Background())
return SafeChannel[T]{
ch: make(chan T),
Write
Preview
Loading…
Cancel
Save