I try to recap (the headache is still there
).
If a routine (sub) returns a value, it is a function.
Then we write/define the return type by the function:
Public Sub Circumference (Radius As Double)
As Double
When we write a routine containing "Sleep" or "Wait For" it is considered/becomes a routine of type Resumable. The type of data that it can return (optionally) is ResumableSub:
Sub MyRoutine
As ResumableSub
Sleep(100)
Thus, both the routine and the value returned by it are ResumableSub. Is the return type the routine "itself"? No, since we can return any type of data:
Sub MyRoutine As ResumableSub
Dim Result As Int
'...
Return Result
End Sub
In short, I believe that my doubts are that the Resumable
signature, in this case, actually declares the routine type (although even without this it is implied, when it contains a Sleep or Wait For) instead of the type of data returned as if it was a function.
[I didn't use Code tags because I couldn't use bold]