Run Logic in Parallel with No-Code Async Functions

Поделиться
HTML-код
  • Опубликовано: 19 ноя 2024

Комментарии • 10

  • @Produlis
    @Produlis 2 месяца назад +1

    Couldn't be more happy with the updates you guys keep pushing!!

  • @DarrenBignall
    @DarrenBignall 2 месяца назад

    Love this feature, and love Chris' videos, he explains things in a really engaging way!

  • @fxbaudonniere
    @fxbaudonniere 26 дней назад

    THank you Chris for your videos it is always calm and well explain, perfect for learning. Keep going 🚀

  • @Appconnex
    @Appconnex 2 месяца назад

    What a fantastic addition. That is very important for us. However, I have a question. Think of an invoice. We want the invoice lines (dozens) to be processed asynchronously. After the loop, the invoice lines need to be merged into one invoice. How can we ensure that after the loop, all the ‘background tasks’ have been completed before we proceed with the function?

    • @seanmontgomery2470
      @seanmontgomery2470 2 месяца назад

      There is a new await statement in the utility group.

  • @brayanjairduquepinto3439
    @brayanjairduquepinto3439 Месяц назад

    That awesome, however, how can I get the response result of those async functions? Maybe if something fails, I'd like to track the status of those async functions.

    • @nocodebackend
      @nocodebackend  Месяц назад

      Hi there! For error handling and tracking failures, you can implement a try/catch block. While this isn't specific to async functions, it's a good practice for handling errors in general. docs.xano.com/working-with-data/functions/utility-functions#try-catch

    • @nocodebackend
      @nocodebackend  Месяц назад

      there is an async await function in the utility group. That will wait for the result.

  • @roskul
    @roskul 2 месяца назад

    How does this compare to post process function?

    • @nocodebackend
      @nocodebackend  2 месяца назад +1

      Post Process only executes after your API returns a response. Async functions allow you to continue performing other business logic while the async function runs in the background using dedicated resources.