Skip to content

Commit 43498a1

Browse files
committed
style: break up long comment line
1 parent fe1cc12 commit 43498a1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/PyEventLoop.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ static PyObject *timerJobWrapper(PyObject *jobFn, PyObject *args) {
4444

4545
PyObject *errType, *errValue, *traceback; // we can't call any Python code unless the error indicator is clear
4646
PyErr_Fetch(&errType, &errValue, &traceback);
47-
auto handle = PyEventLoop::AsyncHandle::fromId(handleId); // Making sure a `AsyncHandle::fromId` call is close to its `handle`'s use. We need to ensure the memory block doesn't move for reallocation before we can use the pointer, as we could have multiple new `setTimeout` calls to expand the `_timeoutIdMap` vector while running the job function in parallel.
47+
// Making sure a `AsyncHandle::fromId` call is close to its `handle`'s use.
48+
// We need to ensure the memory block doesn't move for reallocation before we can use the pointer,
49+
// as we could have multiple new `setTimeout` calls to expand the `_timeoutIdMap` vector while running the job function in parallel.
50+
auto handle = PyEventLoop::AsyncHandle::fromId(handleId);
4851
if (repeat && !handle->cancelled()) {
4952
_enqueueWithDelay(_loop, handleId, jobFn, delaySeconds, repeat);
5053
} else {

0 commit comments

Comments
 (0)