syndicate-js/packages/tsc/examples/typescript/src/index.ts

16 lines
564 B
TypeScript
Raw Normal View History

2021-12-01 16:24:29 +00:00
/// SPDX-License-Identifier: GPL-3.0-or-later
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
2021-01-23 22:38:00 +00:00
import { N } from './protocol.js';
2021-12-03 00:52:46 +00:00
import * as Box from './box.js';
import * as Client from './client.js';
import { Actor, Dataspace, Turn } from '@syndicate-lang/core';
2021-01-23 22:38:00 +00:00
console.time('box-and-client-' + N.toString());
2021-12-03 00:52:46 +00:00
Actor.boot(() => {
Turn.activeFacet.preventInertCheck();
const ds = create new Dataspace();
Box.boot(ds);
Client.boot(ds, () => console.timeEnd('box-and-client-' + N.toString()));
});