From 08ed56025492bb71ecd4e493b9ad8236a49b5010 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Wed, 12 May 2021 16:03:36 +0000 Subject: [PATCH] chore(docs): update section id to keep alphabetic order (#6515) --- docs/src/threading-java.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/src/threading-java.md b/docs/src/threading-java.md index 24067c0cf0..ab0e88d92b 100644 --- a/docs/src/threading-java.md +++ b/docs/src/threading-java.md @@ -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.