Hi All,
I use the wait for... but maybe not good.
My problem is, that this first wait for ended before the last initdb run. What is the righ approach when there is multiple wait for in called subs ?
Thanks in advance
Steven
I use the wait for... but maybe not good.
My problem is, that this first wait for ended before the last initdb run. What is the righ approach when there is multiple wait for in called subs ?
Thanks in advance
Steven
B4X:
Wait For(Codebase.init) Complete (Result As String)
If Result.Length>0 Then
...
B4X:
Public Sub init As ResumableSub
Dim res As String = ""
Try
initColors
Wait For(initdb) Complete (res As String)
...
Return res
end sub
B4X:
private Sub initdb As ResumableSub
...
sql.InitializeAsync("PostgreSQL", "org.postgresql.Driver", $"jdbc:postgresql://${DBLocation}:${DBPort}/postgres"$, DBUsername, DBPassword)
wait for PostgreSQL_Ready (Success As Boolean)
If Success Then
...
Return res
End Sub