Global

Location

  • Reference:
    • Go.dll  .NET, .NET Standard 2.0
    • Go.fx  Island
  • Namespace: go.context
  • Platforms: .NET, .NET Standard 2.0, Island

 

Background

 

class method Background: Context

 

static Context Background()

 

static func Background() -> Context

 

func Background() Context

Canceled

 

class var Canceled: error;

 

static error Canceled

 

static var Canceled: error

 

Canceled error

DeadlineExceeded

 

class var DeadlineExceeded: error;

 

static error DeadlineExceeded

 

static var DeadlineExceeded: error

 

DeadlineExceeded error

TODO

 

class method TODO: Context

 

static Context TODO()

 

static func TODO() -> Context

 

func TODO() Context

WithCancel

 

class method WithCancel(parent: Context): tuple of (ctx: Context, cancel: CancelFunc)

 

static (Context ctx, CancelFunc cancel) WithCancel(Context parent)

 

static func WithCancel(_ parent: Context) -> (ctx:Context, cancel:CancelFunc)

 

func WithCancel(parent Context) (ctx Context, cancel CancelFunc)

Parameters:

  • parent:

WithDeadline

 

// .NET, Island
class method WithDeadline(parent: Context; d: Time): tuple of (Context, CancelFunc)
// .NET Standard 2.0
class method WithDeadline(parent: Context; d: Time): ValueTuple<Context, CancelFunc>

 

// .NET, Island
static (Context, CancelFunc) WithDeadline(Context parent, Time d)
// .NET Standard 2.0
static ValueTuple<Context, CancelFunc> WithDeadline(Context parent, Time d)

 

// .NET, Island
static func WithDeadline(_ parent: Context, _ d: Time) -> (Context, CancelFunc)
// .NET Standard 2.0
static func WithDeadline(_ parent: Context, _ d: Time) -> ValueTuple<Context, CancelFunc>

 

// .NET, Island
func WithDeadline(parent Context, d Time) (Context, CancelFunc)
// .NET Standard 2.0
func WithDeadline(parent Context, d Time) ValueTuple<Context, CancelFunc>

Parameters:

  • parent:
  • d:

WithTimeout

 

// .NET, Island
class method WithTimeout(parent: Context; timeout: Duration): tuple of (Context, CancelFunc)
// .NET Standard 2.0
class method WithTimeout(parent: Context; timeout: Duration): ValueTuple<Context, CancelFunc>

 

// .NET, Island
static (Context, CancelFunc) WithTimeout(Context parent, Duration timeout)
// .NET Standard 2.0
static ValueTuple<Context, CancelFunc> WithTimeout(Context parent, Duration timeout)

 

// .NET, Island
static func WithTimeout(_ parent: Context, _ timeout: Duration) -> (Context, CancelFunc)
// .NET Standard 2.0
static func WithTimeout(_ parent: Context, _ timeout: Duration) -> ValueTuple<Context, CancelFunc>

 

// .NET, Island
func WithTimeout(parent Context, timeout Duration) (Context, CancelFunc)
// .NET Standard 2.0
func WithTimeout(parent Context, timeout Duration) ValueTuple<Context, CancelFunc>

Parameters:

  • parent:
  • timeout:

WithValue

 

class method WithValue(parent: Context; key: Object; val: Object): Context

 

static Context WithValue(Context parent, Object key, Object val)

 

static func WithValue(_ parent: Context, _ key: Object, _ val: Object) -> Context

 

func WithValue(parent Context, key interface{}, val interface{}) Context

Parameters:

  • parent:
  • key:
  • val:

 

Canceled

 

class var Canceled: error;

 

static error Canceled

 

static var Canceled: error

 

Canceled error

DeadlineExceeded

 

class var DeadlineExceeded: error;

 

static error DeadlineExceeded

 

static var DeadlineExceeded: error

 

DeadlineExceeded error

 

Background

 

class method Background: Context

 

static Context Background()

 

static func Background() -> Context

 

func Background() Context

TODO

 

class method TODO: Context

 

static Context TODO()

 

static func TODO() -> Context

 

func TODO() Context

WithCancel

 

class method WithCancel(parent: Context): tuple of (ctx: Context, cancel: CancelFunc)

 

static (Context ctx, CancelFunc cancel) WithCancel(Context parent)

 

static func WithCancel(_ parent: Context) -> (ctx:Context, cancel:CancelFunc)

 

func WithCancel(parent Context) (ctx Context, cancel CancelFunc)

Parameters:

  • parent:

WithDeadline

 

// .NET, Island
class method WithDeadline(parent: Context; d: Time): tuple of (Context, CancelFunc)
// .NET Standard 2.0
class method WithDeadline(parent: Context; d: Time): ValueTuple<Context, CancelFunc>

 

// .NET, Island
static (Context, CancelFunc) WithDeadline(Context parent, Time d)
// .NET Standard 2.0
static ValueTuple<Context, CancelFunc> WithDeadline(Context parent, Time d)

 

// .NET, Island
static func WithDeadline(_ parent: Context, _ d: Time) -> (Context, CancelFunc)
// .NET Standard 2.0
static func WithDeadline(_ parent: Context, _ d: Time) -> ValueTuple<Context, CancelFunc>

 

// .NET, Island
func WithDeadline(parent Context, d Time) (Context, CancelFunc)
// .NET Standard 2.0
func WithDeadline(parent Context, d Time) ValueTuple<Context, CancelFunc>

Parameters:

  • parent:
  • d:

WithTimeout

 

// .NET, Island
class method WithTimeout(parent: Context; timeout: Duration): tuple of (Context, CancelFunc)
// .NET Standard 2.0
class method WithTimeout(parent: Context; timeout: Duration): ValueTuple<Context, CancelFunc>

 

// .NET, Island
static (Context, CancelFunc) WithTimeout(Context parent, Duration timeout)
// .NET Standard 2.0
static ValueTuple<Context, CancelFunc> WithTimeout(Context parent, Duration timeout)

 

// .NET, Island
static func WithTimeout(_ parent: Context, _ timeout: Duration) -> (Context, CancelFunc)
// .NET Standard 2.0
static func WithTimeout(_ parent: Context, _ timeout: Duration) -> ValueTuple<Context, CancelFunc>

 

// .NET, Island
func WithTimeout(parent Context, timeout Duration) (Context, CancelFunc)
// .NET Standard 2.0
func WithTimeout(parent Context, timeout Duration) ValueTuple<Context, CancelFunc>

Parameters:

  • parent:
  • timeout:

WithValue

 

class method WithValue(parent: Context; key: Object; val: Object): Context

 

static Context WithValue(Context parent, Object key, Object val)

 

static func WithValue(_ parent: Context, _ key: Object, _ val: Object) -> Context

 

func WithValue(parent Context, key interface{}, val interface{}) Context

Parameters:

  • parent:
  • key:
  • val: