mirror of
https://github.com/Naios/continuable.git
synced 2026-02-08 10:46:40 +08:00
notes
This commit is contained in:
parent
add21a50f7
commit
775dd10d06
@ -576,7 +576,8 @@ namespace detail
|
|||||||
{
|
{
|
||||||
continuable.invoke([storage](Args&&... args)
|
continuable.invoke([storage](Args&&... args)
|
||||||
{
|
{
|
||||||
storage->store<Offset, Args...>(std::forward<Args>(args)...);
|
// FIXME
|
||||||
|
// storage->store<Offset, Args...>(std::forward<Args>(args)...);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
2
test.cpp
2
test.cpp
@ -413,7 +413,7 @@ int main(int /*argc*/, char** /*argv*/)
|
|||||||
return CastSpellPromise(20);
|
return CastSpellPromise(20);
|
||||||
},
|
},
|
||||||
[] {
|
[] {
|
||||||
return make_continuable([](Callback<bool, bool, double, std::unique_ptr<std::string>>&& callback)
|
return make_continuable([](Callback<bool, bool, double /*, std::unique_ptr<std::string>*/>&& callback)
|
||||||
{
|
{
|
||||||
callback(true, false, 0.3f/*, std::unique_ptr<std::string>(new std::string("oh, all work is done!"))*/);
|
callback(true, false, 0.3f/*, std::unique_ptr<std::string>(new std::string("oh, all work is done!"))*/);
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user