Skip to content

Add missing FFI: onSpawn handler #34

@JordanMartinez

Description

@JordanMartinez

I noticed the onSpawn handler is missing here.

Adding it is straight-forward though we should use EffectFn2 for this:

export function onSpawn(cp) {
  return function (cb) {
    return function () {
      cp.on("spawn", function () {
        cb();
      });
    };
  };
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions