Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
15a45e1d7b |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -2,3 +2,4 @@
|
||||
*.pyc
|
||||
xcuserdata
|
||||
.bin
|
||||
project.xcworkspace
|
||||
|
||||
@@ -55,7 +55,6 @@
|
||||
F608A9CE2826BCB6005C276B /* WorkPromise.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WorkPromise.h; sourceTree = "<group>"; };
|
||||
F608A9CF2826BCB6005C276B /* Futures.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = Futures.cpp; sourceTree = "<group>"; };
|
||||
F608A9D02826BCB6005C276B /* Future.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = Future.hpp; sourceTree = "<group>"; };
|
||||
F608A9D22826BCB6005C276B /* Future.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Future.h; sourceTree = "<group>"; };
|
||||
F608A9D32826BCB6005C276B /* FutureEvent.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = FutureEvent.hpp; sourceTree = "<group>"; };
|
||||
F608A9D42826BCB6005C276B /* WorkPromise.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = WorkPromise.hpp; sourceTree = "<group>"; };
|
||||
F608A9D52826BCB6005C276B /* PromiseLocked.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = PromiseLocked.hpp; sourceTree = "<group>"; };
|
||||
@@ -71,9 +70,7 @@
|
||||
F608A9E02826BCB6005C276B /* Future_Requirements.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = Future_Requirements.hpp; sourceTree = "<group>"; };
|
||||
F608A9E22826BCB6005C276B /* Future_void.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Future_void.h; sourceTree = "<group>"; };
|
||||
F608A9E32826BCB6005C276B /* Future.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = Future.cpp; sourceTree = "<group>"; };
|
||||
F608A9E52826BCB6005C276B /* Future.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Future.h; sourceTree = "<group>"; };
|
||||
F608A9E62826BCB6005C276B /* PromiseOfFutures.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = PromiseOfFutures.cpp; sourceTree = "<group>"; };
|
||||
F608A9E82826BCB6005C276B /* Future.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Future.h; sourceTree = "<group>"; };
|
||||
F608A9E92826BCB6005C276B /* Futures.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = Futures.hpp; sourceTree = "<group>"; };
|
||||
F608AA7F2826BE2A005C276B /* Core_Future_Tests */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = Core_Future_Tests; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
F608AA812826BE2A005C276B /* main.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = main.cpp; sourceTree = "<group>"; };
|
||||
@@ -100,6 +97,8 @@
|
||||
F6CC6A2E2D076BEB00D533B7 /* FutureResult_v2.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = FutureResult_v2.hpp; sourceTree = "<group>"; };
|
||||
F6CC6A2F2D076C1500D533B7 /* FutureResult.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = FutureResult.hpp; sourceTree = "<group>"; };
|
||||
F6CC6A302D07771200D533B7 /* FutureResult.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = FutureResult.cpp; sourceTree = "<group>"; };
|
||||
F6CD525B2F5B190B00EFCF67 /* LICENSE */ = {isa = PBXFileReference; lastKnownFileType = text; path = LICENSE; sourceTree = "<group>"; };
|
||||
F6CD527A2F5B197000EFCF67 /* ReadMe.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = ReadMe.md; sourceTree = "<group>"; };
|
||||
F6DDE7012DAABA93005F94FC /* after_using.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = after_using.hpp; sourceTree = "<group>"; };
|
||||
F6F53DD528F5A9F000E878EF /* FutureStrong.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = FutureStrong.hpp; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
@@ -135,12 +134,14 @@
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
F608AA862826BE82005C276B /* Frameworks */,
|
||||
F6BF9BE52E390216002E6AF0 /* Makefile */,
|
||||
F608AB692827F3BB005C276B /* Makefile.def */,
|
||||
F608AB6A2827F3BC005C276B /* Makefile.project */,
|
||||
F608A9C02826BC54005C276B /* Products */,
|
||||
F608AA802826BE2A005C276B /* tests */,
|
||||
F61D7C422E38168F002A1AED /* tjp */,
|
||||
F6CD525B2F5B190B00EFCF67 /* LICENSE */,
|
||||
F6BF9BE52E390216002E6AF0 /* Makefile */,
|
||||
F608AB692827F3BB005C276B /* Makefile.def */,
|
||||
F608AB6A2827F3BC005C276B /* Makefile.project */,
|
||||
F6CD527A2F5B197000EFCF67 /* ReadMe.md */,
|
||||
);
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
@@ -166,38 +167,35 @@
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
F61F9BF22C6E4E1600F79137 /* _tests */,
|
||||
F608A9D92826BCB6005C276B /* custom */,
|
||||
F633E93C2915B72B007A4C26 /* after.hpp */,
|
||||
F6DDE7012DAABA93005F94FC /* after_using.hpp */,
|
||||
F608A9D12826BCB6005C276B /* boost */,
|
||||
F608A9D92826BCB6005C276B /* custom */,
|
||||
F608A9E72826BCB6005C276B /* folly */,
|
||||
F62757BA2B307D7C00655557 /* future_handle_exception.hpp */,
|
||||
F66A9DEA290C641600AA74BD /* future_on_exception.hpp */,
|
||||
F635F7C82E3B950B00E3D1D6 /* future_is_exception.hpp */,
|
||||
F63DCC5C2EDA451D003BEE7C /* future_on_exception_what.hpp */,
|
||||
F63DCC5D2EDA5CE9003BEE7C /* future_on_exception_value.hpp */,
|
||||
F6984F512EF34B6800718723 /* future_discard_exception.hpp */,
|
||||
F676CAC12E9211A700BE5ACC /* future_success.hpp */,
|
||||
F608A9CD2826BCB6005C276B /* Future.h */,
|
||||
F608A9D02826BCB6005C276B /* Future.hpp */,
|
||||
F60582782EC24B14008FE966 /* weak_future_consume.hpp */,
|
||||
F6984F512EF34B6800718723 /* future_discard_exception.hpp */,
|
||||
F62757BA2B307D7C00655557 /* future_handle_exception.hpp */,
|
||||
F635F7C82E3B950B00E3D1D6 /* future_is_exception.hpp */,
|
||||
F66A9DEA290C641600AA74BD /* future_on_exception.hpp */,
|
||||
F63DCC5D2EDA5CE9003BEE7C /* future_on_exception_value.hpp */,
|
||||
F63DCC5C2EDA451D003BEE7C /* future_on_exception_what.hpp */,
|
||||
F676CAC12E9211A700BE5ACC /* future_success.hpp */,
|
||||
F608A9C82826BCB6005C276B /* FutureChain.h */,
|
||||
F608A9CB2826BCB6005C276B /* FutureChain.hpp */,
|
||||
F6CC6A2B2D076B5D00D533B7 /* FutureErase.hpp */,
|
||||
F608A9D32826BCB6005C276B /* FutureEvent.hpp */,
|
||||
F6865CAF289C0C6700A46111 /* FutureResult.h */,
|
||||
F6CC6A2F2D076C1500D533B7 /* FutureResult.hpp */,
|
||||
F6865CAE289C0B5F00A46111 /* FutureResult_v1.hpp */,
|
||||
F6CC6A2E2D076BEB00D533B7 /* FutureResult_v2.hpp */,
|
||||
F6CC6A2F2D076C1500D533B7 /* FutureResult.hpp */,
|
||||
F608A9CF2826BCB6005C276B /* Futures.cpp */,
|
||||
F608A9D72826BCB6005C276B /* Futures.h */,
|
||||
F608A9E92826BCB6005C276B /* Futures.hpp */,
|
||||
F608A9CF2826BCB6005C276B /* Futures.cpp */,
|
||||
F6F53DD528F5A9F000E878EF /* FutureStrong.hpp */,
|
||||
F608A9E42826BCB6005C276B /* liblw */,
|
||||
F608A9D82826BCB6005C276B /* PromiseLocked.h */,
|
||||
F608A9D52826BCB6005C276B /* PromiseLocked.hpp */,
|
||||
F608A9C92826BCB6005C276B /* PromiseOfFutures.h */,
|
||||
F608A9CA2826BCB6005C276B /* PromiseOfFutures.hpp */,
|
||||
F60582782EC24B14008FE966 /* weak_future_consume.hpp */,
|
||||
F6B4CFC12A6D7303004B9AB5 /* WeakFuture.hpp */,
|
||||
F608A9CE2826BCB6005C276B /* WorkPromise.h */,
|
||||
F608A9D42826BCB6005C276B /* WorkPromise.hpp */,
|
||||
@@ -205,51 +203,27 @@
|
||||
path = future;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
F608A9D12826BCB6005C276B /* boost */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
F608A9D22826BCB6005C276B /* Future.h */,
|
||||
);
|
||||
path = boost;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
F608A9D92826BCB6005C276B /* custom */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
F61F9BF32C6E4E3800F79137 /* _tests */,
|
||||
F608A9DA2826BCB6005C276B /* Future.h */,
|
||||
F608A9DB2826BCB6005C276B /* Future.hpp */,
|
||||
F608A9E32826BCB6005C276B /* Future.cpp */,
|
||||
F608A9DD2826BCB6005C276B /* Future_.h */,
|
||||
F608A9DE2826BCB6005C276B /* Future_.hpp */,
|
||||
F608A9DF2826BCB6005C276B /* Future_void.hpp */,
|
||||
F608A9E02826BCB6005C276B /* Future_Requirements.hpp */,
|
||||
F608A9E22826BCB6005C276B /* Future_void.h */,
|
||||
F608A9E32826BCB6005C276B /* Future.cpp */,
|
||||
F608A9DF2826BCB6005C276B /* Future_void.hpp */,
|
||||
);
|
||||
path = custom;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
F608A9E42826BCB6005C276B /* liblw */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
F608A9E52826BCB6005C276B /* Future.h */,
|
||||
);
|
||||
path = liblw;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
F608A9E72826BCB6005C276B /* folly */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
F608A9E82826BCB6005C276B /* Future.h */,
|
||||
);
|
||||
path = folly;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
F608AA802826BE2A005C276B /* tests */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
F61F9BF12C6E4DFC00F79137 /* Makefile.project */,
|
||||
F608AA812826BE2A005C276B /* main.cpp */,
|
||||
F61F9BF12C6E4DFC00F79137 /* Makefile.project */,
|
||||
);
|
||||
path = tests;
|
||||
sourceTree = "<group>";
|
||||
@@ -273,12 +247,12 @@
|
||||
F61F9BF22C6E4E1600F79137 /* _tests */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
F633E93D2915B970007A4C26 /* after.cpp */,
|
||||
F608A9D62826BCB6005C276B /* FutureChain.cpp */,
|
||||
F6CC6A2C2D076B7300D533B7 /* FutureErase.cpp */,
|
||||
F6CC6A302D07771200D533B7 /* FutureResult.cpp */,
|
||||
F633E93D2915B970007A4C26 /* after.cpp */,
|
||||
F608A9CC2826BCB6005C276B /* PromiseLocked.cpp */,
|
||||
F608A9E62826BCB6005C276B /* PromiseOfFutures.cpp */,
|
||||
F608A9D62826BCB6005C276B /* FutureChain.cpp */,
|
||||
);
|
||||
path = _tests;
|
||||
sourceTree = "<group>";
|
||||
|
||||
26
LICENSE
Executable file
26
LICENSE
Executable file
@@ -0,0 +1,26 @@
|
||||
MIT NON-AI License
|
||||
|
||||
Copyright (c) 2026, Timothy Prepscius
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of the software and associated documentation files (the "Software"),
|
||||
to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions.
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
In addition, the following restrictions apply:
|
||||
|
||||
1. The Software and any modifications made to it may not be used for the purpose of training or improving machine learning algorithms,
|
||||
including but not limited to artificial intelligence, natural language processing, or data mining. This condition applies to any derivatives,
|
||||
modifications, or updates based on the Software code. Any usage of the Software in an AI-training dataset is considered a breach of this License.
|
||||
|
||||
2. The Software may not be included in any dataset used for training or improving machine learning algorithms,
|
||||
including but not limited to artificial intelligence, natural language processing, or data mining.
|
||||
|
||||
3. Any person or organization found to be in violation of these restrictions will be subject to legal action and may be held liable
|
||||
for any damages resulting from such use.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
||||
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
|
||||
OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
11
ReadMe.md
Executable file
11
ReadMe.md
Executable file
@@ -0,0 +1,11 @@
|
||||
# Core_Future
|
||||
|
||||
Futures
|
||||
|
||||
Has `then` continuations
|
||||
|
||||
Todo:
|
||||
|
||||
* implement after_on - which will take an future eand execute it's continuation on a scheduler
|
||||
* write examples
|
||||
* remove obsolete code
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#define CATCH_CONFIG_RUNNER
|
||||
#include <tjp/core/testing/catch.hpp>
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#include <tjp/core/header_only/compile.h>
|
||||
#ifdef TJP_CORE_HEADER_ONLY
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#include <tjp/core/future/FutureChain.hpp>
|
||||
#include <tjp/core/iterators/range.hpp>
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#include "../FutureErase.hpp"
|
||||
#include <tjp/core/testing/catch.hpp>
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#include "../FutureResult.hpp"
|
||||
#include <tjp/core/testing/catch.hpp>
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#include <tjp/core/future/PromiseLocked.hpp>
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#include <tjp/core/future/PromiseOfFutures.hpp>
|
||||
#include <tjp/core/iterators/range.hpp>
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#include <tjp/core/future/after.hpp>
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
|
||||
#pragma once
|
||||
|
||||
#define BOOST_THREAD_PROVIDES_FUTURE
|
||||
#define BOOST_THREAD_PROVIDES_FUTURE_CONTINUATION
|
||||
#include <boost/thread.hpp>
|
||||
#include <boost/thread/future.hpp>
|
||||
#include <functional>
|
||||
|
||||
namespace tjp {
|
||||
namespace core {
|
||||
|
||||
template<typename T>
|
||||
using Future = boost::future<T>;
|
||||
|
||||
template<typename T>
|
||||
using Promise = boost::promise<T>;
|
||||
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#include "Future.hpp"
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#include <tjp/core/future/custom/Future.hpp>
|
||||
#include <tjp/core/testing/catch.hpp>
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <folly/futures/Future.h>
|
||||
|
||||
namespace tjp {
|
||||
namespace core {
|
||||
|
||||
template<typename T>
|
||||
using Promise = folly:Promise<T>;
|
||||
|
||||
template<typename T>
|
||||
using Future = folly::Future<T>;
|
||||
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <lw/event/Promise.impl.hpp>
|
||||
|
||||
namespace tjp {
|
||||
namespace core {
|
||||
|
||||
template<typename T>
|
||||
using Promise = lw::event::Promise<T>;
|
||||
|
||||
template<typename T>
|
||||
using Future = lw::event::Future<T>;
|
||||
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2026 Timothy Prepscius
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
Reference in New Issue
Block a user