COSTIMEREVENT_TIMEREVENTSERVICE(3erl)

πŸ“¦
version 5.2.2 Β· 2 versions
, in fedora 43, fedora 44

✨ CosTimerEvent_TimerEventService ✨

okay bestie, gather round, because we're about to get into the CosTimerEvent_TimerEventService module from the cosTime manual (section 3erl, Erlang Module Definition, iykyk). πŸ’–


🌸 NAME 🌸

CosTimerEvent_TimerEventService β€” this module implements the OMG CosTime::TimerEventService interface. that's it, that's the whole name section, slay. πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

so like. if you wanna get access to the record definitions for the structures, you literally just do this:

-include_lib("cosTime/include/*.hrl").

that's the vibe. no cap. ✨


πŸ’… EXPORTS πŸ’…

πŸŽ€ register(TimerEventService, CosEventCommPushConsumer, Data) -> TimerEventHandler

Types:

TimerEventService = CosEventCommPushConsumer =
TimerEventHandler = #objref
Data = #any

okay so this operation creates a brand new TimerEventHandler object 🫢, and that object will push the given Data to the given CosEventCommPushConsumer after the timer has been set. iconic behaviour fr fr.


πŸŽ€ unregister(TimerEventService, TimerEventHandler) -> ok

Types:

TimerEventService = TimerEventHandler = #objref

this one terminates the given TimerEventHandler. it's giving cleanup era. πŸ’€βœ¨


πŸŽ€ event_time(TimerEventService, TimerEvent) -> UTO

Types:

TimerEventService = #objref
TimerEvent = #'CosTimerEvent_TimerEvent'{utc, event_data}
utc =
event_data = #any}
UTO = #objref

this operation returns a UTO that contains the time at which the associated event was triggered. timezone girlie behaviour, lowkey obsessed. πŸ•πŸ’œ


🫢 heads up bestie: everything above is exactly what the page says, i just added sprinkles. don't come for me.

and that's the whole page!! this gorgeous little number came to you from Ericsson AB, it's cosTime version 5.2.2, and it lives in the manual as CosTimerEv...ventService(3). bye bestie, go set some timers πŸ’…πŸŒˆβ­

πŸ“¦ where this page comes from