Sub Button1_Click
Wait For(Sum(1, 2)) Complete (Result As Int) '<---------------------------------
Log("result: " & Result)
Log("after sum")
End Sub
Sub Sum(a As Int, b As Int) As ResumableSub
Sleep(100)
Wait for http job to get Factor from Internet
Return (a + b) * Factor
End Sub