Displaying 1 result from an estimated 1 matches for "scrap_and_store_text".
2007 Dec 17
1
Some more updates, enhancements and fixes
...11"
3. Check for Ruby version.
4. Introduced Thread pool now, all the workers have access to
"thread_pool" object, which can be used to run concurrent tasks in
ruby threads:
An example,
def scrap_wikipedia(text)
thread_pool.defer(text) do |text|
scrap_and_store_text(text)
end
end
Please consult backgroundrb documentation for more information about
this. By default the thread pool is of size 20.
5. Wrote examples on, how to use "connect" and "start_server" methods
from backgroundrb workers. Again, consult documentation for...