Skip to content

bp.store - consider refactor with event callbacks #225

@michbarsinai

Description

@michbarsinai
const eB1 = Event("b1");

bp.setCallback(EventSet("p1"), function(event, storage){
    storage.put("a", event.data.aCount);
});

bthread("b1", function (){
    waitFor( Event("A") );
    bp.store.put("v", "b1");
    bp.log.info(bp.store.get("v"));
    request(eB1);
});

bthread("b3",function(){
    request( Event("A") );
    bp.log.info(bp.store.get("v"));
})

Then cancel/deprecate bp.store.put

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions