sleepsort

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SleepSort

type SleepSort struct {
	Multiplier uint
}

SleepSort is a class that will sleep sort a list of uints using Goroutines to sleep in milliseconds corresponding to the value of the uint multiplied by the multiplier. The output is not guaranteed to be sorted.

func (SleepSort) Sort

func (s SleepSort) Sort(list []uint) (chan []uint, chan struct{})

Jump to

Keyboard shortcuts

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