diff --git a/source/tasky/engine.d b/source/tasky/engine.d index 9f7d986..cc55362 100644 --- a/source/tasky/engine.d +++ b/source/tasky/engine.d @@ -15,6 +15,22 @@ import std.socket : Socket; import core.thread : Thread, dur; import tasky.exceptions : SessionError; +public class TaskyEvent : Event +{ + private byte[] payload; + + this(ulong descID, byte[] payload) + { + super(descID); + this.payload = payload; + } + + public byte[] getPayload() + { + return payload; + } +} + public final class Engine : Thread { /** @@ -56,22 +72,6 @@ public final class Engine : Thread running = true; } - public class TaskyEvent : Event - { - private byte[] payload; - - this(ulong descID, byte[] payload) - { - super(descID); - this.payload = payload; - } - - public byte[] getPayload() - { - return payload; - } - } - /** * Worker thread function which checks the tristanable * queues for whichever has messages on them and then