MCPcopy Create free account
hub / github.com/porsager/postgres / cancel

Function cancel

cjs/src/connection.js:145–154  ·  view source on GitHub ↗
({ pid, secret }, resolve, reject)

Source from the content-addressed store, hash-verified

143 }
144
145 async function cancel({ pid, secret }, resolve, reject) {
146 try {
147 cancelMessage = b().i32(16).i32(80877102).i32(pid).i32(secret).end(16)
148 await connect()
149 socket.once('error', reject)
150 socket.once('close', resolve)
151 } catch (error) {
152 reject(error)
153 }
154 }
155
156 function execute(q) {
157 if (terminated)

Callers

nothing calls this directly

Calls 2

connectFunction · 0.70
endMethod · 0.65

Tested by

no test coverage detected