An anomaly was reported to me today. A code that is marked error that is compiled and works
It works in B4A, B4J but it doesn't work in B4i.
I guess it's an anomaly, it shouldn't wait if the COMPLETE doesn't return anything. It should not compile if the ResumableSub does not return a value
B4X:
Private Sub Main
log(1)
Wait For (Pausa) Complete ' Don't write (Result a Boolean)
log(2)
End Sub
Private Sub Pausa As ResumableSub
Sleep(4000)
' don't write Return Boolean
End Sub
It works in B4A, B4J but it doesn't work in B4i.
I guess it's an anomaly, it shouldn't wait if the COMPLETE doesn't return anything. It should not compile if the ResumableSub does not return a value