This repository has been archived by the owner on Aug 26, 2022. It is now read-only.
Attributes and syntax extensions for the built-in timers #420
Labels
compiler
Feature related to the compiler
language-design
Feature related to the language design
usability
Issue or update regarding usability
Low-priority proposal. It would be nice to have attributes and syntax extensions that simplify using the new built-in timers.
For example, instead of the user having to explicitly handle a
TimerElapsedEvent
, they could use an attribute such as:instead of:
Also, the
HandleTimeoutForPing
would now receive theTimerInfo
as argument (instead of having to access theTimerElapsedEvent
which would be internal.instead of:
This can be supported in the P# syntax on something like:
The text was updated successfully, but these errors were encountered: