Change ClientPool API to reflect future changes.

This commit is contained in:
Shiz 2014-02-21 19:10:38 +01:00
parent a47bbb8e23
commit 76ccc35bb8
1 changed files with 1 additions and 11 deletions

View File

@ -143,10 +143,6 @@ class Client(MyBase):
API API
--- ---
**pydle**
`featurize(*bases)`: create a client base class out of the given feature classes with a proper method resolution order. See the FAQ for details.
**pydle.Client** **pydle.Client**
`Client(nickname, fallback_nicknames=[], username=None, realname=None)` - construct a client. if `username`/`realname` are not given, they will be constructed from the nickname. `Client(nickname, fallback_nicknames=[], username=None, realname=None)` - construct a client. if `username`/`realname` are not given, they will be constructed from the nickname.
@ -359,13 +355,7 @@ You can also overload `Client.on_raw_<cmd>(message)`, where `cmd` is the raw IRC
`ClientPool.remove(client)` - remove client from pool. `ClientPool.remove(client)` - remove client from pool.
`ClientPool.has_message()` - check whether or not there are unprocessed message(s) available in this pool. `ClientPool.handle_forever()` - handle clients in pool forever.
`ClientPool.handle_message()` - handle a single unprocessed message.
`ClientPool.poll_single()` - wait for a new message to arrive.
`ClientPool.poll_forever()` - enter main loop for pool. Will not return until all clients disconnected.
Utilities Utilities
--------- ---------