chore(docs): update section id to keep alphabetic order (#6515)

This commit is contained in:
Yury Semikhatsky 2021-05-12 16:03:36 +00:00 committed by GitHub
parent ab55918979
commit 08ed560254
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,10 +1,8 @@
---
id: threading
id: multithreading
title: "Multithreading"
---
## Multithreading in Playwright Java
Playwright Java is not thread safe, i.e. all its methods as well as methods on all objects created by it (such as [BrowserContext], [Browser], [Page] etc.) are expected to be called on the same thread where the Playwright object was created or proper synchronization should be implemented to ensure only one thread calls Playwright methods at any given time. Having said that it's okay to create multiple Playwright instances each on its own thread.
Here is an example where three playwright instances are created each on its own thread. Each instance launches its own browser process and runs the test against it.