(type, worker, key)
| 1108 | |
| 1109 | |
| 1110 | function getSocketList(type, worker, key) { |
| 1111 | const sockets = worker[kChannelHandle].sockets[type]; |
| 1112 | let socketList = sockets[key]; |
| 1113 | if (!socketList) { |
| 1114 | const Construct = type === 'send' ? SocketListSend : SocketListReceive; |
| 1115 | socketList = sockets[key] = new Construct(worker, key); |
| 1116 | } |
| 1117 | return socketList; |
| 1118 | } |
| 1119 | |
| 1120 | |
| 1121 | function maybeClose(subprocess) { |