Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
issue47901.go22 linesDownload Raw Back to typeparam
1// run2 3// Copyright 2021 The Go Authors. All rights reserved.4// Use of this source code is governed by a BSD-style5// license that can be found in the LICENSE file.6 7package main8 9type Chan[T any] chan Chan[T]10 11func (ch Chan[T]) recv() Chan[T] {12	return <-ch13}14 15func main() {16	ch := Chan[int](make(chan Chan[int]))17	go func() {18		ch <- make(Chan[int])19	}()20	ch.recv()21}22 
codekingpro/portable-devtools · Team Ai