-
-
Couldn't load subscription status.
- Fork 8.6k
Open
Labels
B-devtoolsIncludes everything BiDi or Chrome DevTools relatedIncludes everything BiDi or Chrome DevTools relatedC-pyPython BindingsPython BindingsI-enhancementSomething could be betterSomething could be better
Description
Description
This request is essentially the same as #13845, but for Python binding.
In WebSocketConnection._process_message, callback invocations are executed in separate threads:
| Thread(target=callback, args=(params,)).start() |
This could disrupt the original ordering of callback invocations, which is problematic for certain CDP events. For example, HeapProfiler.addHeapSnapshotChunk provides only a chunk parameter and relies entirely on the order of invocation to correctly reconstruct the snapshot.
It would be helpful if the callback function WebSocketConnection.add_callback accepts could have an additional order parameter to allow enforcing sequential ordering when needed.
Have you considered any alternatives or workarounds?
No response
Metadata
Metadata
Assignees
Labels
B-devtoolsIncludes everything BiDi or Chrome DevTools relatedIncludes everything BiDi or Chrome DevTools relatedC-pyPython BindingsPython BindingsI-enhancementSomething could be betterSomething could be better