GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    cmdln (cmdln@thecommandline.social)'s status on Saturday, 09-May-2026 07:26:02 JSTcmdlncmdln

    I wrote my first async generator in Typescript today. Never really had a use case for one before.

    The alternative would have been using a higher order function which is fine but sometimes that still leads to more mingling of concerns that I'd like.

    Here the generator let me keep code to fetch data cleanly separate from code for submitting a job to process that data.

    My new service is highly async, mostly I/O bound so used an async generator here specifically.

    In conversationabout 5 months ago from thecommandline.socialpermalink

    Attachments


  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.