andrewvy/chrome-remote-interface

Page Pooling / Session Configuration

Closed this issue · 2 comments

There should be a minimal pool implementation to manage checking out / checking in Pages.

Looking at either a poolboy or sbroker implementation.

A Session should be able to specify pool options for pages:

page_pool_options: [
  initial_size: 20, # Number of Pages to initially start the pool with 
  max_size: 100, # Max Number of Pages to the pool
  blocking: true # Should block the requesting process from 
]

Actually, unsure if this should be the responsibility of this library. Possibly the future library that wraps this interface should handle higher-level abstractions like this.

Going to close this, this shouldn't be part of this library but should be part of a higher-level library that wraps this one.