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
AnyMap JS Maps 8.0.0
FlowHeater 4.1.0
Luxand FaceSDK 6.3.1
dbForge Data Compare for PostgreSQL 3.0
C# PDF 4.4.2
Bytescout PDF Viewer SDK 8.6.0.2911
AppJetty Advance Product Designer For Magento 1.0.1
Free UWP PDF Viewer SDK 1.0
FUNDRAISER Crowdfunding Script 1.0
Bytescout BarCode Generator SDK 4.61.0.952
Jango Clone Script 1.0
GetOrgChart 2.4.0
iTech Car Sell Script 2.03
ByteScout PDF Renderer SDK 8.6.0.2911
Install Package IronOcr 4.1.1
Top Code
Ars Logo Design
Numerical Inversion of the Laplace Transform using the Talbot method .
inverse 2-D Laplace transform 1.0
Dh-mlm By Dh Softwares v3.6.0
Simulated Annealing Optimization 1.0
Aspose.BarCode for .NET 5.4.0.0
UltraKeyword Generator 1.0
Python for .NET: Lessons learned
dbForge SQL Complete Express 4.8
Top Rated
Jango Clone Script 1.0
Get Random Record Based on Weight 1.0.0
Magento Product Designer 1.0
OFOS - Just Eat Clone Script 1.0
PrestaShop Upload Images Module 1.2.1
Trading Software 1.2.4
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Sine Wave Using JavaFX 1.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Readymade MLM Software 2.02
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