andrewvy / chrome-remote-interface

Elixir Client for the Chrome Debugger Protocol
https://hexdocs.pm/chrome_remote_interface
66 stars 30 forks source link

Page Pooling / Session Configuration #2

Closed andrewvy closed 7 years ago

andrewvy commented 7 years ago

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 
]
andrewvy commented 7 years ago

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.

andrewvy commented 7 years ago

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.