[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Comments on ‘wip-nio’

From: Nala Ginrut
Subject: Re: Comments on ‘wip-nio’
Date: Fri, 23 Mar 2012 09:47:54 +0800

Besides, I think we need "write bytevector from port and return the successful size".
Just like "write-string!/partial". Now I have to use utf8->string to convert the bytevector to string.
Why we need such a thing? Because once we introduced Non-Block IO ,we can not write the whole bytevector in one time. When we get EAGAIN, we must skip the bytevector size which is successfully written then try again. So we need a "write-bytevector!/partial" or something else.
Fortunately, we don't need such a thing for Non-Block reading since we have call-with-bytevector-output-port which could record the size we received conveniently.

On Fri, Mar 23, 2012 at 9:17 AM, Nala Ginrut <address@hidden> wrote:

On Fri, Mar 23, 2012 at 5:36 AM, Neil Jerram <address@hidden> wrote:
but I would guess that there are cases
where a module isn't already constrained like this, and still might want
to use a "do X in N seconds time" function.

I think this "do X in N seconds time" function would be useful. And it's better to provider a "do X in N micro-seconds" too.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]