2020.02.26 12:41 PM
rsvp:{[arg;cb] show arg; (neg .z.w) (cb; 43); show `done;}
(neg h) (`rsvp; 42; `echo)
42
as advertised, but the client responds with 'echo
, no 43
shows up.2020.02.26 01:00 PM
We turn to the client side and create echo to serve as the function called back for this demonstration.
q)echo:{show x} / on client
q)h:hopen 10223
q)neg[h] (`rsvp;42;`echo)
q)'echo
q)echo:{show x} / on client
q)neg[h] (`rsvp;42;`echo)
q)43
2020.02.26 01:40 PM
EMEA
Tel: +44 (0)28 3025 2242
AMERICAS
Tel: +1 (212) 447 6700
APAC
Tel: +61 (0)2 9236 5700
KX. All Rights Reserved.
KX and kdb+ are registered trademarks of KX Systems, Inc., a subsidiary of FD Technologies plc.