mirror of
https://github.com/deavmi/eventy.git
synced 2024-09-11 09:02:50 +02:00
Added isSignalExists(ulong id) to check whether a signal handler exists for a given event id
This commit is contained in:
parent
263188fa64
commit
b67f61b848
@ -348,6 +348,15 @@ public final class Engine : Thread
|
||||
return matchedHandlers;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if there is a Signal that handles the given
|
||||
* event ID
|
||||
*/
|
||||
public bool isSignalExists(ulong id)
|
||||
{
|
||||
return getSignalsForEvent(new Event(id)).length != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* push(Event e)
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user