Product Site

5.4.23.1. attachment

Returns the object that has been attached to the Ticker instance upon creation. Returns .nil if no object is attached.

See method init .

Example 5.315. Ticker class — attachment method
eachSecond = .Ticker~new(1, .Target~new, "once each second")
call SysSleep 1.5                      -- will trigger once
eachSecond~cancel

::class Target inherit AlarmNotification
::method triggered                     -- called each interval
  use arg ticker
  say ticker~attachment                -- displays "once each second"