Giter Club home page Giter Club logo

Comments (4)

espindola avatar espindola commented on May 12, 2024

We should implement return(), and that is probably OK for version 0.1 or 0.2. The last line of defense is to use the GC, which can be used with:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/FinalizationRegistry

A good example is at https://github.com/denoland/deno/blob/main/ext/fetch/26_fetch.js#L95

from chiselstrike.

penberg avatar penberg commented on May 12, 2024

@espindola We do implement return() already: https://github.com/chiselstrike/chiselstrike/blob/main/server/src/chisel.js#L39

The issue is about the corner cases it does not cover.

from chiselstrike.

espindola avatar espindola commented on May 12, 2024

@espindola We do implement return() already: https://github.com/chiselstrike/chiselstrike/blob/main/server/src/chisel.js#L39

Nice, I missed that somehow. We should add a test to show that it is working :-)

from chiselstrike.

penberg avatar penberg commented on May 12, 2024

We now explicitly iterate over all resources and close them in closeResources() after endpoint invocation so closing this issue.

from chiselstrike.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.