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
AnyGantt JS Gantt Charts 8.1.0
PHP Scripts Mall Pvt Ltd 1.0.2
Bytescout PDF To HTML SDK 8.7.0.2980
JavaScript Framework Shield UI 1.7.34
Fortune Car Rental Script 3.4
Fortune Stackoverflow Clone 3.4
VintaSoft Imaging .NET SDK 8.6
wolfSSL 3.12.2
Bytescout BarCode Generator SDK 4.62.0.964
ThomasNet Clone Script 2.0
Easy Button & Menu Maker 5.0
Entrepreneur News Portal 1.6
Fortune Quibids Clone 3.4
Database Workbench Pro 5.3.4
Extensibility Studio 2.0
Top Code
fastLogin 1.III
Face Detection & Recognition System 1.0
Chess Master 1.0
Nonlinear F-16 Fighter Model 1.0
Calendar Toolbox (calendar.inc) 1.0
Real Time Battle 1.1
College Management System Script 1.0.4
TIC TAC TOE AI GAME Script 1.1
My Free Fantasy League 1.0
Senna One-Page Html5 Template 1.0
efax 0.9
Circle on image 1.0
Restaurant Table Booking System 2.0
Simple Menu Code 1.1
Travel Booking script 1.0.4
Top Rated
Output Messenger - company chat software 1.7.6
Indiegogo Clone 3.0
PHP Image Resize Script 1.0
Jango Clone 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
Readymade MLM Products 2.01
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
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