Commit c966151
committed
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 forever1 parent fe524ff commit c966151
1 file changed
+41
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
31 | 68 | | |
32 | 69 | | |
33 | 70 | | |
| |||
131 | 168 | | |
132 | 169 | | |
133 | 170 | | |
134 | | - | |
135 | | - | |
| 171 | + | |
| 172 | + | |
136 | 173 | | |
137 | 174 | | |
138 | 175 | | |
| |||
146 | 183 | | |
147 | 184 | | |
148 | 185 | | |
| 186 | + | |
| 187 | + | |
149 | 188 | | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | 189 | | |
167 | | - | |
168 | 190 | | |
169 | 191 | | |
170 | 192 | | |
| |||
0 commit comments