• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ArkScript-lang / Ark / 13344738465

15 Feb 2025 11:50AM UTC coverage: 77.022% (-1.9%) from 78.929%
13344738465

Pull #510

github

web-flow
Merge 70d135e0e into dd2f0e5fc
Pull Request #510: wip

5695 of 7394 relevant lines covered (77.02%)

44192.48 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

28.57
/src/arkreactor/VM/Future.cpp
1
#include <Ark/VM/Future.hpp>
2

3
#include <Ark/VM/VM.hpp>
4

5
namespace Ark::internal
6
{
7
    Future::Future(ExecutionContext* context, VM* vm, std::vector<Value>& args) :
1✔
8
        m_context(context), m_vm(vm), m_value(std::async(std::launch::async, [vm, context, args]() mutable {
5✔
9
            return vm->resolve(context, args);
1✔
10
        }))
11
    {}
2✔
12

13
    Value Future::resolve()
×
14
    {
×
15
        if (!m_value.valid())
×
16
            return Nil;
×
17

18
        m_value.wait();
×
19
        Value res = m_value.get();
×
20

21
        m_vm->deleteContext(m_context);
×
22
        m_context = nullptr;
×
23

24
        return res;
×
25
    }
×
26
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc