UNPKG

@casual-simulation/aux-runtime

Version:
29 lines 758 B
/** * Creates a AttachRuntimeAction. * @param runtime The runtime that should be attached. * @param tagNameMapper The function that should be used to map tag names. * @param taskId The ID of the async task. */ export function attachRuntime(runtime, tagNameMapper, taskId) { return { type: 'attach_runtime', uncopiable: true, runtime, tagNameMapper, taskId, }; } /** * Creates a DetachRuntimeAction. * @param runtime The runtime that should be attached. * @param taskId The ID of the async task. */ export function detachRuntime(runtime, taskId) { return { type: 'detach_runtime', uncopiable: true, runtime, taskId, }; } //# sourceMappingURL=RuntimeEvents.js.map