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

Method push

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

* Message callback to queue operations.

(id: string, resolve?: ResolveType, reject?: RejectType, allowTimeout: boolean = false)

Source from the content-addressed store, hash-verified

29 * Message callback to queue operations.
30 */
31 public push(id: string, resolve?: ResolveType, reject?: RejectType, allowTimeout: boolean = false) {
32 const messageData: IMessageReturnProps = {
33 id,
34 success: true,
35 resolve,
36 reject
37 };
38 if (!allowTimeout) {
39 messageData.timer = setTimeout(() => {
40 this.put(id);
41 reject?.({
42 id,
43 success: false,
44 msg: 'Message Event Timeout'
45 });
46 }, this.timer * 1000);
47 }
48 this.map.set(id, messageData);
49 }
50
51 /**
52 * The message calls back the queueing operation and

Callers 15

getPanelDataFunction · 0.45
getLevelsFunction · 0.45
MonthBaseFunction · 0.45
dfsFunction · 0.45
renderEllipseFunction · 0.45
renderVisualPageFunction · 0.45
renderPageFunction · 0.45
select.stories.tsxFile · 0.45
DropdownSelectMaxContentFunction · 0.45
toArrayFunction · 0.45
MessageUiContainerFunction · 0.45
SkeletonFunction · 0.45

Calls 2

putMethod · 0.95
setMethod · 0.65

Tested by 5

getFieldFunction · 0.36
getFieldFunction · 0.36
create500ThousandArrayFunction · 0.36
collectTokensFunction · 0.36
getDepthOfNodeFunction · 0.36