blob: 003fc98f69bd0cccb22e51cb5b61d7f52409c641 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/*
* Copyright (c) 2010, Isode Limited, London, England.
* All rights reserved.
*/
package com.isode.stroke.eventloop;
/**
* Don't use this, it simply runs the callback in the same thread.
* It is useful for unit testing, but will break GUIs.
*/
public class SimpleEventLoop extends EventLoop {
@Override
protected void post(Event event) {
event.callback.run();
}
}
|