Interface BuckEventBus

    • Method Detail

      • register

        void register​(Object object)
        Register a listener to process events
      • unregister

        void unregister​(Object object)
        Remove a listener previously specified with register()
      • waitEvents

        boolean waitEvents​(long timeout)
        Wait for all currently running events to dispatch and finish executing
        Parameters:
        timeout - Time in milliseconds to wait for completion, if timeout is not greater than 0 then it will wait indefinitely
        Returns:
        true if all events were handled and false if timeout was hit