rruntime

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2021 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Go

func Go(function func(), errorPath string)

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