Wait statements and Functions

In reply to cgales:

You’ll have to shine some light on it, cuz i still don’t get it.

From IEEE 1800-2012 LRM in 9.4.2 Event control:

Nonvirtual methods of an object and built-in methods or system functions for an aggregate type are allowed in event control expressions as long as the type of the return value is singular and the method is defined as a function, not a task.

In my case, i would argue that I am calling a function whose return value is singular.
Is it not?

I still don’t know what the problem is.