multi_threaded

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2022 License: MIT Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(config Config) pdfium.Pool

Init will return a multi-threaded pool. It will launch a new worker for every requested instance as long as the limits allow it. If the pool has been exhausted. It will wait until a worker becomes available. So it's important that you close instances when you're done with them.

Types

type Command

type Command struct {
	BinPath string
	Args    []string
}

type Config

type Config struct {
	MinIdle     int
	MaxIdle     int
	MaxTotal    int
	LogCallback func(string)
	Command     Command
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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