MCPcopy
hub / github.com/tinygo-org/tinygo / createChanClose

Method createChanClose

compiler/channel.go:103–105  ·  view source on GitHub ↗

createChanClose closes the given channel.

(ch llvm.Value)

Source from the content-addressed store, hash-verified

101
102// createChanClose closes the given channel.
103func (b *builder) createChanClose(ch llvm.Value) {
104 b.createRuntimeCall("chanClose", []llvm.Value{ch}, "")
105}
106
107// createSelect emits all IR necessary for a select statements. That's a
108// non-trivial amount of code because select is very complex to implement.

Callers 1

createBuiltinMethod · 0.95

Calls 1

createRuntimeCallMethod · 0.95

Tested by

no test coverage detected