Getting the result/reject values from a Mojo::Promise using async subs

This page summarizes the projects mentioned and recommended in the original post on /r/perl

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • mojo

    :sparkles: Mojolicious - Perl real-time web framework (by mojolicious)

    But if I want the return value of 'test_p' or the error message 'This is an error', I can't seem to figure that out. I tried looking at the promise tests (https://github.com/mojolicious/mojo/blob/main/t/mojo/promise.t) but that didn't seem to work either.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • MojoPromiseTest

    Testing Mojo::Promise in a controller sub

    It seems to work in the tests I've tried so far. I created three different styles of testing and put them in a test Mojo app. You can see the controller code here: https://github.com/shamrice/MojoPromiseTest/blob/main/lib/MojoPromiseTest/Controller/Example.pm

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Mojolicious

    1 project | news.ycombinator.com | 11 Feb 2024
  • Perl 5.38 Released

    4 projects | news.ycombinator.com | 3 Jul 2023
  • Mojo may be the biggest programming language advance in decades

    1 project | /r/perl | 4 May 2023
  • i3mojo -- an i3status replacement in Perl

    2 projects | /r/i3wm | 2 Feb 2023
  • How to use React with Perl/Mojolicious web frame work

    1 project | dev.to | 16 Dec 2022

Did you konow that Perl is
the 24th most popular programming language
based on number of metions?