rruntime

package
v0.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2020 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Go

func Go(function func())

Go Starts the excution of the function passed as argument in a new Goroutine THING TO NOTE: If the function you are intending to run inside a goroutine takes any parameters, before calling this function, create local variable for every argument (so that evaluation of the argument happens immediately) and then pass those local variables as arguments Ex.

var worker *workerT
worker = &workerT{
  	workerID: i,
}
rruntime.Go(func() {
  	rt.workerProcess(worker)
})

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL