From 857b2690afd8d9fbbb3472c948b74dd6cd6e8a95 Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Mon, 6 Feb 2012 11:07:42 -0800 Subject: Update README with actual async callback behavior See issue #79, thanks to @ewencp. --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6cf7b1c..a58101c 100644 --- a/README.md +++ b/README.md @@ -286,7 +286,8 @@ is being disconnected per user-request, no new commands may be added to the outp returned on calls to the `redisAsyncCommand` family. If the reply for a command with a `NULL` callback is read, it is immediately free'd. When the callback -for a command is non-`NULL`, it is responsible for cleaning up the reply. +for a command is non-`NULL`, the memory is free'd immediately following the callback: the reply is only +valid for the duration of the callback. All pending callbacks are called with a `NULL` reply when the context encountered an error. -- cgit v1.2.3