{"id":81879,"library":"spawnling","title":"Spawnling","description":"Provides a Spawnling class to easily fork or thread long-running code sections, with automatic database connection handling for ActiveRecord.","status":"active","version":"2.1.6","language":"ruby","source_language":null,"source_url":"https://github.com/tra/spawnling","tags":["concurrency","forking","threading","background"],"install":[{"cmd":"gem install spawnling","lang":"bash","label":"gem install"},{"cmd":"# Gemfile\ngem 'spawnling', '~> 2.1.6'","lang":"ruby","label":"Gemfile"}],"dependencies":[],"imports":[{"symbol":"Spawnling","correct":"require 'spawnling'"}],"quickstart":{"code":"require 'spawnling'\n\nSpawnling.new do\n  # long-running task\n  sleep 5\n  puts 'done'\nend","lang":"ruby","description":"Run a block in a background thread or fork"},"warnings":[{"fix":"Ensure ActiveRecord reconnects after fork, or use threading mode.","message":"Forking may cause issues with database connections if not properly managed.","severity":"gotcha","affected_versions":">= 2.0.0"}],"env_vars":null,"search_vec":"'activerecord':22 'automat':17 'background':26 'class':5 'code':14 'concurr':23 'connect':19 'databas':18 'easili':7 'fork':8,24 'handl':20 'long':12 'long-run':11 'provid':2 'run':13 'section':15 'spawnl':1,4 'thread':10,25","created_at":"2026-06-19T05:04:11.540418+00:00","updated_at":"2026-06-19T05:04:11.540418+00:00","problems":[],"ecosystem":"rubygems","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"http://github.com/tra/spawnling","github":"https://github.com/tra/spawnling","docs":"http://www.rubydoc.info/gems/spawnling/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility","async"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-19","next_check":"2026-12-16","install_tag":null}}