MCPcopy Index your code
hub / github.com/yuin/gopher-lua / OpenChannel

Function OpenChannel

channellib.go:20–31  ·  view source on GitHub ↗
(L *LState)

Source from the content-addressed store, hash-verified

18}
19
20func OpenChannel(L *LState) int {
21 var mod LValue
22 //_, ok := L.G.builtinMts[int(LTChannel)]
23 // if !ok {
24 mod = L.RegisterModule(ChannelLibName, channelFuncs)
25 mt := L.SetFuncs(L.NewTable(), channelMethods)
26 mt.RawSetString("__index", mt)
27 L.G.builtinMts[int(LTChannel)] = mt
28 // }
29 L.Push(mod)
30 return 1
31}
32
33var channelFuncs = map[string]LGFunction{
34 "make": channelMake,

Callers

nothing calls this directly

Calls 5

RegisterModuleMethod · 0.80
SetFuncsMethod · 0.80
RawSetStringMethod · 0.80
PushMethod · 0.65
NewTableMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…