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

supabase / edge-runtime / 15697309864

17 Jun 2025 03:23AM UTC coverage: 51.861% (+0.4%) from 51.44%
15697309864

Pull #549

github

web-flow
Merge e83267330 into 5c35a9c65
Pull Request #549: [WIP] feat: introduce v8 locker in our codebase

1025 of 1173 new or added lines in 18 files covered. (87.38%)

6 existing lines in 4 files now uncovered.

18142 of 34982 relevant lines covered (51.86%)

11113.4 hits per line

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

20.0
/crates/base/src/runtime/unsync.rs
1
use std::future::Future;
2
use std::pin::Pin;
3
use std::task::Poll;
4

5
#[repr(transparent)]
6
pub struct MaskValueAsSend<V> {
7
  pub value: V,
8
}
9

10
unsafe impl<R> Send for MaskValueAsSend<R> {}
11

12
impl<R> MaskValueAsSend<R> {
13
  #[inline(always)]
14
  pub fn into_inner(self) -> R {
18,184✔
15
    self.value
18,184✔
16
  }
18,184✔
17
}
18

19
pub struct MaskFutureAsSend<Fut> {
20
  pub fut: MaskValueAsSend<Fut>,
21
}
22

23
impl<Fut> From<Fut> for MaskFutureAsSend<Fut>
24
where
25
  Fut: Future,
26
{
NEW
27
  fn from(value: Fut) -> Self {
×
NEW
28
    Self {
×
NEW
29
      fut: MaskValueAsSend { value },
×
NEW
30
    }
×
NEW
31
  }
×
32
}
33

34
impl<Fut: Future> Future for MaskFutureAsSend<Fut> {
35
  type Output = Fut::Output;
36

NEW
37
  fn poll(
×
NEW
38
    self: Pin<&mut Self>,
×
NEW
39
    cx: &mut std::task::Context<'_>,
×
NEW
40
  ) -> Poll<Self::Output> {
×
NEW
41
    unsafe { Pin::new_unchecked(&mut self.get_unchecked_mut().fut.value) }
×
NEW
42
      .poll(cx)
×
NEW
43
  }
×
44
}
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