OxL Reference

kw time

Contextual keyword — the effect list after the return type (§6.2)

The list of words: §1.4

Syntax

ebnf
Effect      = "io" | "net" | "db" | "time" | "rand" | Ident ;

Grammar: App. A

Defined in

Examples

oxl
@explicit interface Middleware { fn around(ctx: &var Ctx, next: Next) -> Response  net, io, time, db }

— 10.2 rpc attributes

oxl
use std.time { Duration, now }
use std.http.{Client as Http}
use self.billing { charge }      // a module of one's own package
use super.common { Money }       // the parent module
use auth.tokens { verify }       // a dependency from oxl.toml
use parsers { <|> }              // importing an operator
use std.coll.*                   // all pub names (a warning in libraries)

— 2.2 Import

Related diagnostics

effects, atomic-db-effects, cross-shard-tx, comptime-error, not-comptime, attribute-not-applicable, cache-not-readonly, invalid-window, retry-not-idempotent, rpc-attr, bad-import-root, glob-import, import-conflict, unresolved-import

See also