artman / Signals

A micro-library for creating and observing events.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ListenPastOnce?

ReneB opened this issue · comments

Would it be useful to have a ListenPastOnce function as well? I'm currently using Signals for creating some data in a remote backend and listening for the return message, but that message might have been received before the create() function returns (slim chance, but chance nonetheless). However, I definitely want the trigger to occur only once.

I could code this and submit a PR, but maybe you've got different ideas so I thought I'd check before coding.

Makes perfect sense, go for it!

Just a heads up: I'll probably get around to doing this today or later this week.