B
Bryan Richardson
Hello All,
I'm using the Memcache protocol class in EventMachine to make calls into
a memcache server. The way the Memcache protocol class works is the user
calls the 'get' function with the key they want a value for and provide
a block to which the value for that key is passed. The Memcache protocol
object then registers a callback with EventMachine, in which the value
returned from memcache is then yielded to the user's callback.
So here's my question... if in the block I pass to the Memcache protocol
object I raise an error, how does the error get handled? In the code
example at https://gist.github.com/776547 the error raised does NOT get
rescued.
Please help!
I'm using the Memcache protocol class in EventMachine to make calls into
a memcache server. The way the Memcache protocol class works is the user
calls the 'get' function with the key they want a value for and provide
a block to which the value for that key is passed. The Memcache protocol
object then registers a callback with EventMachine, in which the value
returned from memcache is then yielded to the user's callback.
So here's my question... if in the block I pass to the Memcache protocol
object I raise an error, how does the error get handled? In the code
example at https://gist.github.com/776547 the error raised does NOT get
rescued.
Please help!