We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df763b0 commit 1af12eeCopy full SHA for 1af12ee
Introspection.cpp
@@ -51,8 +51,10 @@ void Schema::AddDirective(std::shared_ptr<object::__Directive> directive)
51
52
std::future<std::vector<std::shared_ptr<object::__Type>>> Schema::getTypes(const std::shared_ptr<service::RequestState>&) const
53
{
54
+ auto keepAlive = shared_from_this();
55
+
56
return std::async(std::launch::deferred,
- [this]()
57
+ [this, keepAlive]()
58
59
std::vector<std::shared_ptr<object::__Type>> result(_types.size());
60
0 commit comments