func LockThread() {
	for {
		time.Sleep(1 * time.Second)
		runtime.Gosched()
	}
}
/*
Use LockThread on the main thread in lieue of a webserver or some other service that holds the thread
This is primarily used when Thrust and just Thrust is what you are using, in that case lock the thread.
Otherwise, why dont you start an http server, and expose some websockets.
package thrust
import (
	"runtime"
	"time"
	"github.com/miketheprogrammer/go-thrust/lib/bindings/menu"
	"github.com/miketheprogrammer/go-thrust/lib/bindings/session"
	"github.com/miketheprogrammer/go-thrust/lib/bindings/window"
	"github.com/miketheprogrammer/go-thrust/lib/common"
	"github.com/miketheprogrammer/go-thrust/lib/connection"
	"github.com/miketheprogrammer/go-thrust/lib/dispatcher"
	"github.com/miketheprogrammer/go-thrust/lib/events"
	"github.com/miketheprogrammer/go-thrust/lib/spawn"
)
type WindowOptions window.Options
func NewWindow(options WindowOptions) *window.Window {
	return window.NewWindow(window.Options(options))
}
func NewSession(incognito, overrideDefaultSession bool, path string) *session.Session {
	return session.NewSession(incognito, overrideDefaultSession, path)
}
func NewMenu() *menu.Menu {
	return menu.NewMenu()
}
func Start() {
	spawn.Run()
	go dispatcher.RunLoop()
}
func SetProvisioner(p spawn.Provisioner) {
	spawn.SetProvisioner(p)
}