summaryrefslogtreecommitdiff
path: root/includes/Handle.h
diff options
context:
space:
mode:
Diffstat (limited to 'includes/Handle.h')
-rw-r--r--includes/Handle.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/Handle.h b/includes/Handle.h
index f501ab1..e72507c 100644
--- a/includes/Handle.h
+++ b/includes/Handle.h
@@ -1,5 +1,6 @@
#pragma once
+#include <Task.h>
#include <Exceptions.h>
#include <Printer.h>
#include <BString.h>
@@ -57,7 +58,7 @@ class Handle {
ssize_t forceWrite(const void * buf, size_t count, Events::BaseEvent * evt = NULL) throw (GeneralException);
ssize_t write(const String & str) { return write(str.to_charp(), str.strlen()); }
ssize_t forceWrite(const String & str) { return forceWrite(str.to_charp(), str.strlen()); }
- uint8_t readU8() { uint8_t r; read(&r, 1); return r; }
+ Future<uint8_t> readU8();
protected:
Handle() { }
private: