Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
AnyChart JS Charts and Dashboards 8.2.0
GetOrgChart 2.4.8
Output Messenger 1.8.0
ODBC Driver for SQLite 2.3
Devart ODBC Driver for Oracle 2.3
PHPScriptsmall 1.0
Easy Button & Menu Maker 5.2
PHP Business Directory Script 1
ODBC Driver for Firebird 2.3
Event Booking Solutions v2.0b5
ODBC Driver for SQL Azure 2.3
Raduga 1.07.0010
ODBC Driver for SQL Server 2.3
Whatsapp Clone Script 1.0
Grubhub Script, Eat24hours Clone 2.0.1
Top Code
Whatsapp Clone Script 1.0
BlueChat 2.4
Ticket Booking System 1.0
A-star Search Algorithm 1.1
Output Messenger 1.8.0
NES Rom Maker 1.0
Travel Booking script 1.0.4
Spread Spectrum Simulation Application 1.1
Introduction to Dynamic Meteorology, 4e 1.0
Video Conference Website Scripts 2.86
Magento Product Designer 1.0
FJSP Software 1.0
AnyChart JS Charts and Dashboards 8.2.0
Auto2Fit Pro 3.0
WebKit2.NET 0.10
Top Rated
Output Messenger 1.8.0
Aliexpress Clone- Ec21 Script 1
Indiegogo Clone 3.0
PHP Image Resize Script 1.0
Best Spotify Clone 1.0
Get Random Record Based on Weight 1.0.0
Travel Portal Script 9.29
Magento Product Designer 1.0
OFOS - Just Eat Clone Script 1.0
PrestaShop Upload Images Module 1.2.1
Trading Software 1.2.4
Deals and Discounts Website Script 1.0.2
Readymade MLM Products 2.01
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Observer Design Pattern for python gevent coroutine package 
File ID: 64135






Observer Design Pattern for python gevent coroutine package 
Download Observer Design Pattern for python gevent coroutine package http://code.activestate.com/recipes/577490-mongodb-pool-for-gevent-and-pymongo-packages/?in=lang-pythonReport Error Link
License: Freeware
Downloads: 6
Submit Rating:
Observer Design Pattern for python gevent coroutine package  Description
Description: This is simple implementation of the observer design pattern. Acting as a registration hub, it fires events when requested.
Also i have gevent.Timeout like interface in situations when you need to run event-method in the same greenlet. Example:

e = Observer()
ev = e.wait('kill')
try:
gevent.sleep(3)
except FiredEvent:
print 'Fired!'
else:
print 'Not Fired!'
finally:
ev.cancel()

But rememeber, if you are using subscribe method, event-method will be executed in another greenlet.

License: Freeware

Related: Event, gevent, observer, Python

O/S:Windows

Downloads: 6



More Similar Code

Implements the observer design pattern via generator coroutines, wrapped up to use the new 'with' statement of Python 2.5. Enables the loosely-coupled observation of any container implementing the dictionary protocol.



Monitor sets for changes using the Observer design pattern.



This code implements the policy design pattern in Python by using metaclasses and multiple inheritance.



SERIALDATASTREAM is a design pattern for a function to receive and process a continuous stream of data from a device connected to a USB or serial port. This function does not execute as written; it includes explanations and examples for all of the...



WebDeco implemens the Decoration Design Pattern for J2EE/JavaEE web applications. It does so by providing a Servlet Filter that wraps a very flexible and extensible framework for content extraction and decoration.



A compact development framework for Adobe ColdFusion applications, implementing an MVC design pattern for web applications. CFRhino has both an event and extension frameworks allowing it to be fully extended.



Lazarus-chain is a implementation of the chain of responsibility design pattern for Lazarus and Delphi (written in Free Object Pascal). Chains can be constructed in runtime by a configuration file. I use this little framework in several projects.



The Singleton design pattern (DP) has a catchy name, but the wrong focus -- on identity rather than on state. The Borg design pattern has all instances share state instead, and Python makes it, literally, a snap.



The Java Design Pattern API provides a lightweight architecture for representing design patterns as Marker Interfaces within Java applications. This allows for richer JavaDoc documentation and opens up the possibility of pattern-aware development...



Uraga aims to create a CPAN like package installation and management system for Python. Uraga will allow users to download and install Python packages from the Internet by using simple commands. .

User Review for Observer Design Pattern for python gevent coroutine package
- required fields
     

Please enter text on the image