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
VB.Net PDF 4.4.7
SuiteCRM Survey Rocket Plugin 1.0
Airbnb Clone Script | Airbnb Clone 4.3.1
IP2Location Geolocation Database 2018
ODBC Driver for Salesforce 1.5
Rapid PHP 2018 15.0
Bytescout BarCode Generator SDK 4.70.0.981
Data Puppy Lite (32-bit) 1.0
ProZ clone script 1.0.3
VideoCap Live Streaming SDK ActiveX 8.5
Magento Web to Print 1.0
dbForge Data Compare for MySQL 5.4
dbForge Query Builder for MySQL 4.3
ODBC Driver for NetSuite 1.2
Rapid CSS 2018 15.0
Top Code
wfm2read.m 1.0
Online Food Ordeing System 1.0
ArtificialNeuronalNetwork 1.00
WebKit2.NET 0.10
MLM Software ONE 1.5.46
ExpressScheduler 1.0
Barcode ActiveX Control
Fractional-order differential order equation solver 1.0
EXE Stealth Protector 4.23
Data Generator Script 2.0
CAMCOM CHAT 5.0
OpenELD 1.0
Kalman Filter Tutorial 1.0
ODAC 9.6
MATLAB Support Package for Arduino (aka ArduinoIO Package) 1.0
Top Rated
Output Messenger 1.8.0
Aliexpress Clone- Ec21 Script 1
Indiegogo Clone 3.0
Online Food Ordeing System 1.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
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