mirror of
https://github.com/Naios/continuable.git
synced 2026-02-14 06:09:48 +08:00
enable non copyable test
This commit is contained in:
parent
3e0327c331
commit
2bb51468b1
8
test.cpp
8
test.cpp
@ -376,15 +376,15 @@ 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!")));
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
TrivialPromise())
|
TrivialPromise())
|
||||||
.then([](SpellCastResult r0, SpellCastResult r1, bool r2, bool r3, double r4/*, std::unique_ptr<std::string> message*/)
|
.then([](SpellCastResult r0, SpellCastResult r1, bool r2, bool r3, double r4, std::unique_ptr<std::string> message)
|
||||||
{
|
{
|
||||||
return TrivialPromise("Lets see... ")/*.then(Log(*message))*/;
|
return TrivialPromise("Lets see... ").then(Log(*message));
|
||||||
})
|
})
|
||||||
.then([]
|
.then([]
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user