From 73470bfff71a216221298b0004d0fce293872918 Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Tue, 24 Jan 2023 14:17:27 +0100 Subject: [PATCH] Transports are always asynchronous (#1631) --- docs/transports.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/transports.md b/docs/transports.md index 32518d302..11664d568 100644 --- a/docs/transports.md +++ b/docs/transports.md @@ -15,6 +15,8 @@ now referred to as [Legacy Transports](#legacy-transports). From Pino v7 and upwards transports can also operate inside a [Worker Thread][worker-thread] and can be used or configured via the options object passed to `pino` on initialization. +In this case the transports would always operate asynchronously, and logs would be +flushed as quickly as possible (there is nothing to do). [worker-thread]: https://nodejs.org/dist/latest-v14.x/docs/api/worker_threads.html