Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 621 Bytes

on_timeout.md

File metadata and controls

27 lines (18 loc) · 621 Bytes

on_timeout

Counterpart to the on_timeout: attribute.

Sets the on_timeout "attribute" of the parent procedure.

set l []
sequence timeout: '1s'
  push l 0
  on_timeout (def msg \ push l "$(msg.point):$(msg.nid)")
  stall _
  push l 2
push l 3

Ends up with [ 0, 'cancel:0_1', 3 ] in the variable l. The on_timeout is set on the "sequence".

see also

On, on_error, on_cancel.