philostler/acts_as_executor — Issue #25: Simplify executor creation syntax and default to scheduled executor
Author: philostler
Created: 2011-10-10 23:14:56+00:00
State: open
Labels: new feature

Simplify executor creation syntax.

```ruby
Executor.create :name => "background", :limit => 10 # Always creates a ScheduledThreadPoolExecutor
Executor.create :name => "background" # Creates a cached ThreadPoolExecutor with warnings. Scheduled disabled
```

The ```limit``` attribute is a renamed ```max_tasks``` attribute dictating the maximum number of threads allowed to run concurrently.