View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000018 | MAIDENS | Core Application | public | 2020-03-05 13:08 | 2021-06-29 12:00 |
Reporter | administrator | Assigned To | administrator | ||
Priority | none | Severity | feature | Reproducibility | always |
Status | assigned | Resolution | open | ||
Platform | - - Web (OS independent) | OS | - | OS Version | - |
Product Version | 1.5.1 | ||||
Target Version | 1.5.1 | ||||
Summary | 0000018: Add "retroactivelySubscribe()" method in the PTT class of the PTT library | ||||
Description | This would save the client programmer some typing if he is also interested in notifications that occurred before any subscribers were available for a given key. Currently, the code needed to access the payload cached for such notifications is added to the core application, and resembles the snippet below: /** * Syntactic sugar. Subscribes given callback to given PTT key, also considering * "cached notifications" (notifications that occurred before any subscribers were * available; the last body/payload of such a notification gets cached and can * be retrieved by late subscribers by using dedicated API). */ private function retroactivelySubscribe (keyName : String, callback : Function) : void { const GLOBAL_PIPE = PTT.getPipe(); GLOBAL_PIPE.subscribe (keyName, callback); if (GLOBAL_PIPE.hasBackupFor(keyName)) { callback (GLOBAL_PIPE.recoverBackupFor(keyName)); GLOBAL_PIPE.deleteBackupFor(keyName); } } | ||||
Tags | OSX, Windows | ||||
|
Actually this is not related to MAIDENS itself. We should add a "libraries" category, if not a category for each library. On hold for now. |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-03-05 13:08 | administrator | New Issue | |
2020-03-05 13:08 | administrator | Status | new => assigned |
2020-03-05 13:08 | administrator | Assigned To | => administrator |
2020-03-05 13:08 | administrator | Tag Attached: OSX | |
2020-03-05 13:08 | administrator | Tag Attached: Windows | |
2020-05-03 12:42 | administrator | Priority | normal => none |
2020-05-03 12:42 | administrator | Note Added: 0000018 | |
2021-02-01 19:05 | administrator | Product Version | 1.4.9 => 1.5 |
2021-02-01 19:05 | administrator | Target Version | 1.4.9 => 1.5 |
2021-06-29 12:00 | administrator | Product Version | 1.5 => 1.5.1 |
2021-06-29 12:00 | administrator | Target Version | 1.5 => 1.5.1 |