Skip to content

Commit b803dc5

Browse files
committed
update doc on multiple async_execute behavior
From what it appears, the order of execution when multiple `async_execute` operations are invoked with the same `Connection` is probably not guaranteed. It relies on the task schedule and locking behavior [here](https://github.com/iamed2/LibPQ.jl/blob/2c0547daef005e160aa60cb529d4969a670befbc/src/asyncresults.jl#L270). It probably needs non trivial changes to guarantee an order there. Until then it will be good to update the docs with this fact.
1 parent 2c0547d commit b803dc5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/asyncresults.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,8 @@ All keyword arguments are the same as [`execute`](@ref) and are passed to the cr
201201
`Result`.
202202
203203
Only one `AsyncResult` can be active on a [`Connection`](@ref) at once.
204-
If multiple `AsyncResult`s use the same `Connection`, they will execute serially.
204+
If multiple `AsyncResult`s use the same `Connection`, they will execute serially but
205+
without any guarantee of order.
205206
206207
`async_execute` does not yet support [`Statement`](@ref)s.
207208

0 commit comments

Comments
 (0)