nupp.hotreload

Cooperative development hot reload, installed by nupp run --watch.

Module contents

Functions

FunctionKindDescription
generationfunctionReturns the currently committed implementation generation.
pollfunctionDetects source edits and commits a compatible patch at this host boundary.

Functions#

generationfunction#

local generation: nosuspend function(): integer

Returns the currently committed implementation generation.

Returns

TypeDescription
integer

pollfunction#

local poll: function(): nupp.HotReloadPoll

Detects source edits and commits a compatible patch at this host boundary.

Branch on kind: a poll that published reports "prepared", one that found nothing reports "no-change", and the two refusals are told apart by whether restarting is what it would take.

Returns

TypeDescription
nupp.HotReloadPoll