zhebrak / raftos

Asynchronous replication framework for distributed Python projects
MIT License
350 stars 58 forks source link

Support get/set functions for replicated objects #7

Closed zhebrak closed 8 years ago

zhebrak commented 8 years ago

obj.data = {} and obj.data are synchronous since there is no such thing as async descriptors with __aset__/__aget__ yet. In order to run raftos in a running loop we have to make them asynchronous.

await obj.data.update({...})

current_data = await obj.data.value()
zhebrak commented 8 years ago

Implemented in 0.2