Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Thread-local keys are easy to collide with #117
Good point, at the very least these should probably be :celluloid_actor, :celluloid_queue, etc.
For actors themselves I could probably subclass Thread and add the relevant fields as attributes of the current thread, so actors could be built on Celluloid::Threads and let you do Thread.current.actor without all of the logic to determine whether or not you're in a thread context like the current implementation uses.
That would give a lot cleaner API, IMO