OxL Reference

method Span.end

Ends the span. Calling it twice, or on a span that is not recorded, does nothing.

Example:

oxl✓ checked in CI
use std.obs { span }

fn main() io {
  let s = span.start("work")
  s.end()
  s.end()
  print("ended twice without harm")
}
Output
ended twice without harm
pub(api) fn end() io

Since. 1.0.0-beta

Effects

io

Defined in: std/obs/obs.oxl:405

See also