Skip to content

Align use_state with JS implementation #856

@Pijukatel

Description

@Pijukatel

This is pre-requisite for adaptive crawler : #249

use_state should ensure access to global state without race conditions. Currently there can be race conditions when two parallel handlers try to access same value at the same time. Both can get it from kvs and that results in two separate references. Instead both should always get the same reference. So there should be lock that ensures no race conditions.

use_state in JS implementation has hard-coded key.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request.t-toolingIssues with this label are in the ownership of the tooling team.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions