Comments (1)
-
GlobalStateManager has been refactored to support the creation of multiple global-states in parallel, for example, each group can be assigned a global-state
-
Added traits to use global-state for external components of cyfs-stack
GlobalStateRawProcessor
GlobalStateManagerRawProcessor
The sample code for using external components is as follows
async fn usage(state_manager: GlobalStateManagerRawProcessorRef) -> BuckyResult<()> {
let isolate_id = ObjectId::default();
let owner = Some(PeopleId::default().object_id().clone());
let group_state = state_manager.load_root_state(&isolate_id, owner, true).await?.unwrap();
// get dec's root, create if not exists
let dec_id = cyfs_core::DecAppId::default();
let dec_group_state = group_state.get_dec_root_manager(dec_id.object_id(), true).await?;
let op_env = dec_group_state.create_op_env(None).unwrap();
// do something with op_env
op_env.commit().await.unwrap();
Ok(())
}
from cyfs.
Related Issues (20)
- Nighlt OOD preview version has an incomplete update HOT 6
- After App-manager restarted the DEC APP installation process, the DEC APP was not started HOT 3
- Linux app-manager restore installation failed when app-manager breaks down when DEC APP is running "npm i" HOT 4
- Optimize service publishing process HOT 1
- How to config handler`s filter? HOT 3
- If ACL Handler response error,satck.root_state_accessor_stub.get_object_by_path() will not return HOT 8
- The `ping` with `sn` is stopped? HOT 2
- Systemctl status of ood-daemon.service is error HOT 8
- Create restore task not save archive file to disk HOT 1
- Connection problem between runtime and gateway HOT 3
- Stable sort for HashSet HOT 4
- Only web dec_app install failed HOT 1
- Customizing system info HOT 3
- Backup service supports conditional filtering of key data HOT 2
- Release schedule for 84
- Test schedule for 84 Release
- Problems with ood-daemon restore backup data HOT 3
- Query task group state failed in rust. HOT 3
- Method to get an object from MetaChain by body-hash to get a specific version. HOT 1
- Unsound `transmute` in safe method
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cyfs.