Skip to content

Commit 269a9e0

Browse files
author
RoFlection Bot
committed
Add a type annotation here to help the new type solver along. (#388)
* Add a type annotation here to help the new type solver along. * stylua ---------
1 parent ddd4bec commit 269a9e0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/scheduler/src/SchedulerProfiling.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,12 @@ local mainThreadIdCounter: number = 0
2626
local INITIAL_EVENT_LOG_SIZE = 131072
2727
local MAX_EVENT_LOG_SIZE = 524288 -- Equivalent to 2 megabytes
2828

29+
-- Strictly speaking, only the first element of an EventLog can be a reference to another EventLog.
30+
type EventLog = { EventLog | { number } }
31+
2932
local eventLogSize = 0
3033
local eventLogBuffer = nil
31-
local eventLog = nil
34+
local eventLog: EventLog? = nil
3235
local eventLogIndex = 1
3336

3437
local TaskStartEvent = 1

0 commit comments

Comments
 (0)