adhearsion / virginia

A Reel interface to Adhearsion
MIT License
7 stars 10 forks source link

Feature/registered documents #16

Closed bklang closed 9 years ago

bklang commented 9 years ago

Allow registering a creator for a given document ID

Each time the specific document ID is requested, if it is not present in the cache, the callback will be invoked to populate it

bklang commented 9 years ago

@benlangfeld The DocumentCache actor hangs if I don't include https://github.com/polysics/virginia/commit/4bd45e008157160cd57f55757de4964aab9a7cd8#diff-43e0328fddbc1e830828cab6eee33e99R14. Can you help me confirm that this usage is safe? Note that I'm explicitly catching exceptions coming out of the document population block and re-raising them in the caller.

bklang commented 9 years ago

So apparently the fix to get the specs to not hang causes Virginia to hang when the block is called by another actor. I think I'm stuck on this.