mirror of https://github.com/deavmi/eventy.git
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;
|
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)
|
* push(Event e)
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue