I have a asynchronous task running in service.spawn_essential_task(task).
Which does some stuff and wants to write data in storage. How can i achieve this?
Changing state by making runtime_apis
to pallet functions which are not extrinsics and changing state through them does not really change state and this seems to have a local state which changes data there and not in on-chain.
And can we call these task as off chain worker or are these just seperate tasks?