How to use the @effectful/serialization.read function in @effectful/serialization

To help you get started, we’ve selected a few @effectful/serialization examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github awto / effectfuljs / packages / debugger / src / kit.js View on Github external
export function restore(json) {
  const { brk, threads, sync, stack } = S.read(json);
  context.brk = brk;
  context.error = false;
  context.threads = threads;
  context.sync = sync;
  context.stack = stack;
}
github awto / effectfuljs / packages / debugger / src / persist.ts View on Github external
export function restore(json: S.JSONObject) {
  ({
    top: context.top,
    syncStack: context.syncStack,
    queue: context.queue,
    debug: context.debug,
    brk: context.brk,
    extra
  } = S.read(json));
}