Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
e81285f5
Commit
e81285f5
authored
Aug 01, 2009
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update CHANGES
parent
e7cdff09
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
4 deletions
+21
-4
CHANGES
CHANGES
+21
-4
No files found.
CHANGES
View file @
e81285f5
...
...
@@ -4,11 +4,11 @@
All known bugs in the queue module were fixed and it is made 2.4-compatible.
LifoQueue and PriorityQueue are implemented as well.
gevent.queue.Queue implements the standard Queue inteface with the only difference
gevent.queue.Queue implements the standard Queue inte
r
face with the only difference
that Queue(0) means queue of size 0 (i.e. a channel), not a queue of infinite size.
Having size of 0 means that put() methods always block until the item is delivered.
gevent.queue will deprecate coros.Queue and coros.Channel.
gevent.queue will deprecate
both
coros.Queue and coros.Channel.
Timeout now raises itself by default. TimeoutError is gone.
This makes it easy to check that a timeout catched is actually the one raised:
...
...
@@ -22,8 +22,18 @@ This makes it easy to check that a timeout catched is actually the one raised:
select() function had a bug of this kind that was fixed.
spawn and spawn_later were further optimized and spawning time has dropped down
to 5 microseconds without kwargs / 9 with kwargs (from 14).
To instruct a with-block to silent the timeout one must pass False as a second
argument. In this case Timeout won't leave the with-block it belongs to (but
it can still be catched inside)
with Timeout(1, False):
read()
print 'done reading'
Even if read() does not return within a second, "done reading" will still be displayed.
spawn and spawn_later now avoid creating a closure and this decreases spawning
time by 50%.
kill and killall 'wait' argument was renamed to 'block'. The polling is now
implemented by greenlet.join and greenlet.joinall functions and it become more
...
...
@@ -31,6 +41,13 @@ responsive, with gradual increase of sleep time.
proc.RunningProcSet was renamed to proc.ProcSet.
shutdown() function was added, which can be used from the main greenlet to
wait until libevent has finished dispatching the events.
core.pyx now checks the return value of event_add and event_del and raises
IOError if they have failed.
0.9.2
-----
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment