diff options
author | Timothy <timmot@users.noreply.github.com> | 2021-07-15 14:13:02 +1000 |
---|---|---|
committer | Gunnar Beutner <gunnar@beutner.name> | 2021-07-15 11:11:14 +0200 |
commit | 2eb93f2628775d8316dbd4d278e1471fb461386c (patch) | |
tree | b3fcecc7aa39713bcd8e9d826f369bf5d8368856 /Userland/Libraries/LibIMAP/Client.h | |
parent | e4f05a904694dafdd7c62be0df328ee381a975d1 (diff) | |
download | serenity-2eb93f2628775d8316dbd4d278e1471fb461386c.zip |
LibCore+LibIMAP: Move Promise to LibCore
This makes Promise available without having to link LibIMAP.
Diffstat (limited to 'Userland/Libraries/LibIMAP/Client.h')
-rw-r--r-- | Userland/Libraries/LibIMAP/Client.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Libraries/LibIMAP/Client.h b/Userland/Libraries/LibIMAP/Client.h index b61ad1d609..e39f88d158 100644 --- a/Userland/Libraries/LibIMAP/Client.h +++ b/Userland/Libraries/LibIMAP/Client.h @@ -7,10 +7,14 @@ #pragma once #include <AK/Function.h> +#include <LibCore/Promise.h> #include <LibIMAP/Parser.h> #include <LibTLS/TLSv12.h> namespace IMAP { +template<typename T> +using Promise = Core::Promise<T>; + class Client { friend class Parser; |