From 18f30387a6cadb659e9156777370b761e4a837b1 Mon Sep 17 00:00:00 2001 From: Thomas Cruveilher <38007824+Sorikairox@users.noreply.github.com> Date: Wed, 25 May 2022 11:44:53 +0200 Subject: [PATCH] Update controllers.md --- doc/learn/controllers.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/learn/controllers.md b/doc/learn/controllers.md index f7ed18e9..11027a3e 100644 --- a/doc/learn/controllers.md +++ b/doc/learn/controllers.md @@ -174,8 +174,9 @@ Being a modern framework, we know that data extraction is mostly **asynchronous**. That's why Danet supports and works well with `async` functions. -!!!info Hint Learn more about `async / await` feature -[here](https://kamilmysliwiec.com/typescript-2-1-introduction-async-await) !!! +!!!info Hint +Learn more about `async / await` feature [here](https://kamilmysliwiec.com/typescript-2-1-introduction-async-await) +!!! Every async function has to return a `Promise`. This means that you can return a deferred value that Danet will be able to resolve by itself. Let's see an