imqCallRejector() function
Builds and returns call rejector, which supports after call optional hook
Signature:
export declare function imqCallRejector(reject: (err: any) => void, req: IMQRPCRequest, client: IMQClient): (err: any, res?: IMQRPCResponse) => void;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
reject |
(err: any) => void |
source promise like rejector |
|
req |
call request | |
|
client |
imq client {(err: any) => void} - hook-supported reject |
Returns:
(err: any, res?: IMQRPCResponse) => void