From edcc628b30d940cc171db4ce581400f729f2b575 Mon Sep 17 00:00:00 2001 From: cheatfate Date: Tue, 29 May 2018 02:37:06 +0300 Subject: [PATCH] Update README. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 23678a4..60e34a7 100644 --- a/README.md +++ b/README.md @@ -8,10 +8,10 @@ Asyncdispatch hard fork. 1. Unified callback type `CallbackFunc`. Current version of asyncdispatch uses many types of callbacks. - `proc ()` used in callSoon() callbacks and Future[T] completion callbacks. - `proc (fut: Future[T])` used in Future[T] completion callbacks. - `proc (fd: AsyncFD, bytesTransferred: Dword, errcode: OSErrorCode)` used in Windows IO completion callbacks. - `proc (fd: AsyncFD): bool` used in Unix IO events callbacks. + - `proc ()` used in callSoon() callbacks and Future[T] completion callbacks. + - `proc (fut: Future[T])` used in Future[T] completion callbacks. + - `proc (fd: AsyncFD, bytesTransferred: Dword, errcode: OSErrorCode)` used in Windows IO completion callbacks. + - `proc (fd: AsyncFD): bool` used in Unix IO events callbacks. Such a number of different types creates big problems in the storage, processing and interaction between callbacks. Lack of ability to pass custom user data to callback also creates difficulties and inefficiency, to pass custom user-defined data you need to use closures (one more allocation).