You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bridge.call: move result retrieval to separate API
New calls will be in the form:
Bridge.call("test", 1, 2) -> returns true if the call succeeded, ignore the return
Bridge.call("test", 1, 2).result(c) -> stores the result in variable c, returns true if succeeded
Bridge.call("test", 1, 2).timeout(20) -> waits 20ms for the result, then returns fals if timeout is reached
Bridge.call("test", 1, 2).timeout(20).result(c) -> same but storing the result to variable c
Bridge.call("test", 1, 2).result(c, 20) -> same as previous call
* Usages that do not held the expected behaviour:
Bridge.call("test", 1, 2).result(c).timeout(20) -> doesn't apply the timeout, waits forever
0 commit comments