In reply to pkoti0583:
from LRM:
“A function shall not contain any time-controlled statements. That is, any statements containing #,##, @, fork-join, fork-join_any, wait, wait_order, or expect…”
note that join_none is allowed :p …
from LRM:
“Within a function, a fork-join_none construct may contain any statements that are legal within a task”
i.e even @statement is allowed inside a function, provided it is within join_none…