I have many threads. Each thread creates and uses it’s own WebClient (HtmlUnit framework). No one thread uses WebClient’s instance from other thread. Is it thread safe?
I have many threads. Each thread creates and uses it’s own WebClient (HtmlUnit framework).
Share
From the documentation
As long as each thread creates its own WebClient, you won’t have any issues. From what you said, you’re doing the right thing.