Sub CallingSub
DoProcessingAsync(boxesList,process)
wait for Localized(Success As Boolean)
End Sub
Sub DoProcessingAsync(boxesList As List,process As List) As ResumableSub
Dim b() As Boolean = Array As Boolean(False)
TimeOutImpl(1000, b)
th.Start(Me,"DoProcessing",Array As List(boxesList,process))
wait for th_Ended(endedOK As Boolean, error As String)
If b(0) = False Then CallSubDelayed2(Me, "Localized", True)
Log(endedOK)
Log(error)
Return endedOK
End Sub
Sub TimeOutImpl(Duration As Int, b() As Boolean)
Sleep(Duration)
If b(0) = False Then
Log("time out")
CallSubDelayed2(Me, "Localized", False)
End If
End Sub