Пакет: libevent-distributor-perl (0.06-1)
Ссылки для libevent-distributor-perl
Ресурсы Debian:
- Сообщения об ошибках
- Developer Information
- Debian журнал изменений
- Файл авторских прав
- Отслеживание заплат Debian
Исходный код libevent-distributor-perl:
- [libevent-distributor-perl_0.06-1.dsc]
- [libevent-distributor-perl_0.06.orig.tar.gz]
- [libevent-distributor-perl_0.06-1.debian.tar.xz]
Сопровождающие:
Внешние ресурсы:
- Сайт [metacpan.org]
Подобные пакеты:
simple in-process pub/sub mechanism
Instances of the Event::Distributor class provide a simple publish/subscribe mechanism within a single process, for either synchronous or Future-based asynchronous use.
A given instance has a set of named events. Subscribers are CODE references attached to a named event. Publishers can declare the existence of a named event, and then later invoke it by passing in arguments, which are distributed to all of the subscribers of that named event.
It is specifically not an error to request to subscribe an event that has not yet been declared, in order to allow multiple modules of code to be loaded and subscribe events the others publish, without introducing loading order dependencies. An event only needs to be declared by the time it is fired.
Natively all of the events provided by the distributor are fully-asynchronous in nature. Each subscriber is expected to return a Future instance which will indicate its completion; the results of these are merged into a single future returned by the fire method itself. However, to support synchronous or semi-synchronous programs using it, both the observe and invoke methods also have a synchronous variant. Note however, that this module does not provide any kind of asynchronous detachment of synchronous functions; using the /subscribe_sync method to subscribe a long-running blocking function will cause the fire_* methods to block until that method returns. To achieve a truely-asynchronous experience the attached code will need to use some kind of asynchronous event system.
Другие пакеты, относящиеся к libevent-distributor-perl
|
|
|
|
-
- dep: libfeature-compat-try-perl
- make try/catch syntax available
-
- dep: libfuture-perl
- module for operations awaiting completion
-
- dep: perl
- практический язык Ларри Уолла для извлечения данных и составления отчётов
Загрузка libevent-distributor-perl
Архитектура | Размер пакета | В установленном виде | Файлы |
---|---|---|---|
all | 21,2 Кб | 48,0 Кб | [список файлов] |