Problem in understanding of Jitsi-Meet

I want to know the difference of above two cases.

AFAIK the second one returns a void function, the first one returns a func which has a returning value