MCPcopy Index your code
hub / github.com/apitable/apitable / put

Method put

packages/widget-sdk/src/message/protocol/message_map.ts:71–77  ·  view source on GitHub ↗

* Take out the information corresponding to the specified ID.

(id: string)

Source from the content-addressed store, hash-verified

69 * Take out the information corresponding to the specified ID.
70 */
71 private put(id: string) {
72 const messageData = this.map.get(id);
73 if (!messageData) return;
74 this.map.delete(id);
75 messageData.timer && clearTimeout(messageData.timer);
76 return messageData;
77 }
78}
79
80export const messageMap = new MessageMap();

Callers 15

pushMethod · 0.95
popMethod · 0.95
updateCascaderSnapshotFunction · 0.45
mergeAttributesMethod · 0.45
heartbeatMethod · 0.45
doExecuteMethod · 0.45
executeMethod · 0.45

Calls 3

clearTimeoutFunction · 0.85
getMethod · 0.65
deleteMethod · 0.65