Skip to content

question: can eio_js_backend.Start provide env? #3

@jetjinser

Description

@jetjinser

I've just started using OCaml and eio, and what I'm working on is making a library that uses eio_main be compiled into JavaScript that is nodejs callable via jsoo.

As far as I understand, functions in Eio.Stdenv will only access the capabilities in env that they need. Does this mean that only part of the env need to be implemented?

For example, in nodejs, there is the fs api, so is it possible to make functions like Eio.Stdenv.cwd work?

Another little question is, if I want to construct an env myself, is it difficult? How can I do it?

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