Resumable subs make it much simpler to handle asynchronous tasks.
Additional improvements:
- Debugger improvements.
- Node_AnimationCompleted event.
Example:
B4X:
Sub Button1_Action
Dim left As Double = Button1.Left
For i = 1 To 5
'right
Button1.SetLayoutAnimated(100, left + 100 / i, Button1.Top, Button1.Width, Button1.Height)
Wait For Button1_AnimationCompleted
'left
Button1.SetLayoutAnimated(100, left - 100 / i, Button1.Top, Button1.Width, Button1.Height)
Wait For Button1_AnimationCompleted
Next
Button1.SetLayoutAnimated(100, left, Button1.Top, Button1.Width, Button1.Height)
End Sub