This code introduces the thread activity store sqlite ops to web worker
Depends on D11614
Differential D11615
[sqlite] Implement processing thread activity on web worker Authored by will on Apr 10 2024, 5:58 AM.
Details This code introduces the thread activity store sqlite ops to web worker Depends on D11614 Ran the following code on web and confirmed the results: await sharedWorker.schedule({
type: workerRequestMessageTypes.PROCESS_STORE_OPERATIONS,
storeOperations: {
threadActivityStoreOperations: [
{
type: 'replace_thread_activity_entry',
payload: {
id: 'worker_test_A_id',
threadActivityStoreEntry: JSON.stringify({
lastNavigatedTo: 1,
lastPruned: 2,
}),
},
},
{
type: 'replace_thread_activity_entry',
payload: {
id: 'worker_test_B_id',
threadActivityStoreEntry: JSON.stringify({
lastNavigatedTo: 3,
lastPruned: 4,
}),
},
},
{
type: 'remove_thread_activity_entries',
payload: {
ids: ['worker_test_B_id'],
},
},
],
},
});
Diff Detail
|