B4A Tutorial [B4X] Resumable subs that return values (ResumableSub) - Erel    Aug 25, 2020   (41 reactions)   tags: wait, Comm, Code, B4X, Dialog ResumableSub, Wait For Remember that that a call to Sleep or Wait For in a resumable sub causes the code flow to return to....
Solution
Resumable subs can return a new type named ResumableSub. Other subs can use this value to... B4A Question Resumable Sub that returns 2 values - Alessandro71    Jan 3, 2023 How can you write a Resumable Sub that returns 2 values, just like ExecQueryAsync?
I always see Resumable Subs that returns just one value
Dim SenderFilter As Object = sql.ExecQueryAsync("SQL... B4A Question Resumable subs return type must be ResumableSub (or none). - walt61 (first post)    Dec 2, 2023   (1 reaction) examples about ResumableSubs that return a value (and how to obtain that value), see https://www.b4x.com/android/forum/threads/b4x-resumable-subs-that-return-values-resumablesub.82670/...The method's signature should be:
Sub getRatings(l As liquorInfo) As ResumableSub
To be on the safe side, I would also change:
' Old code:
rating = result.Get("average_rating"... B4A Question [Unsolved] ResumableSub, custom type return and obfuscation - Jeffrey Cameron    Apr 22, 2022 I have a resumable sub, akin to:
Public Sub DeviceGetStatus As ResumableSub
Dim Result as MyCustomType
' .... more code
Log("Device status request complete.")
Return... B4A Question Resumable subs cant return a value? - techknight    Jul 26, 2017 the user a list of player numbers and names, and its supposed to return the player number of the player the user selects. But, it doesnt work. its complaining about unable to return a value on a resumable... Wish Allow accessing a ResumableSub return value without using Wait For - Erel (first post)    Apr 1, 2021   (5 reactions) )
Loop
Return True
End Sub
Sub S1 (Result As Map) As ResumableSub
Sleep(Rnd(10, 5000... As Map) As ResumableSub
Sleep(Rnd(10, 5000))
Result.Put("S2", 2)
Return True
End... B4A Question Resumable sub return type must be resumable sub or none. none - Reminisce (first post)    May 6, 2020 Yeah, @Erel I saw that thread earlier on. I don't quite understand it fully. I guess I will have to move the job download code into a different sub.... B4A Question how to use Resumable subs that return more then two values (ResumableSub)? - cup319 (first post)    Sep 11, 2021   (1 reaction) Sub FX(url As String,name As String,id As Int)As ResumableSub
..........
..........
Return array(numberlist,tvlist)
Private Sub Button1_Click
Wait For(fx("http:xxxx.com"...))
End Sub
here is the answer... B4A Question [resolved] DateDialogs - Resumable subs return type must be ResumableSub - stingrae (first post)    Oct 2, 2018 Ahh, I must've been playing around with it from another project and then discarded it.
But what you said worked. Thank you.... B4A Question returning ResumableSub from ResumableSub - Robert Valentino    Jan 10, 2020
Log("TestResumableSub2")
Return TestResumableSub3
End Sub...)
Return TestResumableSub4
End Sub
public Sub TestResumableSub4 As ResumableSub... Page: 1   2   3   4   |