Syntax for waiting for type-less future (method) to finish could be clearer

I’m looking at type-less futures. If you want to wait for a method to finish you’ll have to do this:


It’s not clear if this method call is async, and thus is already running before that line, or sync.

Isn’t it more clear if you can do something like this?

waitfor fut();

NB: As something like await in C#, although that works a bit different.

The whole point of Futures om Oxygene is really thaty you can use them transparently, eg:

var x: future Integer := async ....
var y: Integer := 5;
var z:= x+y; // awaits as needed.
1 Like