Package uk.ac.manchester.spinnaker.utils
Class OneShotEvent
java.lang.Object
uk.ac.manchester.spinnaker.utils.OneShotEvent
An asynchronous event that can be fired exactly once.
- Author:
- Donal Fellows
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
OneShotEventpublic OneShotEvent()
 
- 
- 
Method Details- 
awaitWait for the event to fire.- Throws:
- InterruptedException- If wait is interrupted.
 
- 
firepublic void fire()Fire the event.
 
-