OxL Справочник OxL
РусскийEnglish

method Span.end

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

Example:

oxl✓ проверяется в CI
use std.obs { span }

fn main() io {
  let s = span.start("work")
  s.end()
  s.end()
  print("ended twice without harm")
}
Вывод
ended twice without harm
pub(api) fn end() io

С версии. 1.0.0-beta

Эффекты

io

Определено в: std/obs/obs.oxl:405

См. также