diff --git a/LICENSE.md b/LICENSE.md index 7b1f40a..2ffc5a0 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ MIT License -Copyright (C) 2018-2019, by Matvey Cherevko (blackmatov@gmail.com) +Copyright (C) 2018-2021, by Matvey Cherevko (blackmatov@gmail.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/headers/promise.hpp/jobber.hpp b/headers/promise.hpp/jobber.hpp index 58b0434..7bb3e8a 100644 --- a/headers/promise.hpp/jobber.hpp +++ b/headers/promise.hpp/jobber.hpp @@ -1,7 +1,7 @@ /******************************************************************************* * This file is part of the "https://github.com/blackmatov/promise.hpp" * For conditions of distribution and use, see copyright notice in LICENSE.md - * Copyright (C) 2018-2019, by Matvey Cherevko (blackmatov@gmail.com) + * Copyright (C) 2018-2021, by Matvey Cherevko (blackmatov@gmail.com) ******************************************************************************/ #pragma once diff --git a/headers/promise.hpp/promise.hpp b/headers/promise.hpp/promise.hpp index daff97e..4aa3248 100644 --- a/headers/promise.hpp/promise.hpp +++ b/headers/promise.hpp/promise.hpp @@ -1,7 +1,7 @@ /******************************************************************************* * This file is part of the "https://github.com/blackmatov/promise.hpp" * For conditions of distribution and use, see copyright notice in LICENSE.md - * Copyright (C) 2018-2019, by Matvey Cherevko (blackmatov@gmail.com) + * Copyright (C) 2018-2021, by Matvey Cherevko (blackmatov@gmail.com) ******************************************************************************/ #pragma once @@ -123,7 +123,7 @@ namespace promise_hpp std::size_t size() const noexcept { return (*state_).size(); } - + std::exception_ptr at(std::size_t index) const { return (*state_).at(index); } @@ -886,7 +886,7 @@ namespace promise_hpp std::forward(on_resolve), std::forward(on_reject), true); - + return next; } diff --git a/headers/promise.hpp/scheduler.hpp b/headers/promise.hpp/scheduler.hpp index d694ac6..0c89216 100644 --- a/headers/promise.hpp/scheduler.hpp +++ b/headers/promise.hpp/scheduler.hpp @@ -1,7 +1,7 @@ /******************************************************************************* * This file is part of the "https://github.com/blackmatov/promise.hpp" * For conditions of distribution and use, see copyright notice in LICENSE.md - * Copyright (C) 2018-2019, by Matvey Cherevko (blackmatov@gmail.com) + * Copyright (C) 2018-2021, by Matvey Cherevko (blackmatov@gmail.com) ******************************************************************************/ #pragma once diff --git a/untests/catch_main.cpp b/untests/catch_main.cpp index 169f581..b6c87d4 100644 --- a/untests/catch_main.cpp +++ b/untests/catch_main.cpp @@ -1,7 +1,7 @@ /******************************************************************************* * This file is part of the "https://github.com/blackmatov/promise.hpp" * For conditions of distribution and use, see copyright notice in LICENSE.md - * Copyright (C) 2018-2019, by Matvey Cherevko (blackmatov@gmail.com) + * Copyright (C) 2018-2021, by Matvey Cherevko (blackmatov@gmail.com) ******************************************************************************/ #define CATCH_CONFIG_MAIN diff --git a/untests/jobber_tests.cpp b/untests/jobber_tests.cpp index e536505..a4dc08b 100644 --- a/untests/jobber_tests.cpp +++ b/untests/jobber_tests.cpp @@ -1,7 +1,7 @@ /******************************************************************************* * This file is part of the "https://github.com/blackmatov/promise.hpp" * For conditions of distribution and use, see copyright notice in LICENSE.md - * Copyright (C) 2018-2019, by Matvey Cherevko (blackmatov@gmail.com) + * Copyright (C) 2018-2021, by Matvey Cherevko (blackmatov@gmail.com) ******************************************************************************/ #define CATCH_CONFIG_FAST_COMPILE diff --git a/untests/promise_tests.cpp b/untests/promise_tests.cpp index 0102267..44d57eb 100644 --- a/untests/promise_tests.cpp +++ b/untests/promise_tests.cpp @@ -1,7 +1,7 @@ /******************************************************************************* * This file is part of the "https://github.com/blackmatov/promise.hpp" * For conditions of distribution and use, see copyright notice in LICENSE.md - * Copyright (C) 2018-2019, by Matvey Cherevko (blackmatov@gmail.com) + * Copyright (C) 2018-2021, by Matvey Cherevko (blackmatov@gmail.com) ******************************************************************************/ #define CATCH_CONFIG_FAST_COMPILE diff --git a/untests/scheduler_tests.cpp b/untests/scheduler_tests.cpp index 7ae31f5..69a299c 100644 --- a/untests/scheduler_tests.cpp +++ b/untests/scheduler_tests.cpp @@ -1,7 +1,7 @@ /******************************************************************************* * This file is part of the "https://github.com/blackmatov/promise.hpp" * For conditions of distribution and use, see copyright notice in LICENSE.md - * Copyright (C) 2018-2019, by Matvey Cherevko (blackmatov@gmail.com) + * Copyright (C) 2018-2021, by Matvey Cherevko (blackmatov@gmail.com) ******************************************************************************/ #define CATCH_CONFIG_FAST_COMPILE