Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(547)

Issue 2244463002: Rust: Support delayed tasks in RunLoop (Closed)

Created:
4 years, 4 months ago by mknyszek
Modified:
4 years, 4 months ago
Base URL:
git@github.com:domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Rust: Support delayed tasks in RunLoop Adds the ability to schedule a delayed task in the RunLoop. The task is inserted as a closure and as long as one handle lives in the RunLoop it is guaranteed to run at the confirmed deadline (with no handlers the RunLoop exits). R=eholk@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/fefa014de0c9b55547ea19ed005b252a00dbe2e2

Patch Set 1 #

Patch Set 2 : Give more leeway in tests #

Patch Set 3 : Oops, forgot to fix build, should work now #

Total comments: 4

Patch Set 4 : loosen restriction on Fn #

Unified diffs Side-by-side diffs Delta from patch set Stats (+233 lines, -6 lines) Patch
M mojo/public/rust/src/bindings/run_loop.rs View 1 2 3 10 chunks +129 lines, -6 lines 0 comments Download
M mojo/public/rust/tests/run_loop.rs View 1 2 3 chunks +104 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
mknyszek
Second-to-last CL, I'm leaving tomorrow and its small so if you could get this in ...
4 years, 4 months ago (2016-08-12 00:52:44 UTC) #2
Eric Holk
lgtm otherwise (admittedly, I looked over this pretty quickly) https://codereview.chromium.org/2244463002/diff/40001/mojo/public/rust/src/bindings/run_loop.rs File mojo/public/rust/src/bindings/run_loop.rs (right): https://codereview.chromium.org/2244463002/diff/40001/mojo/public/rust/src/bindings/run_loop.rs#newcode145 mojo/public/rust/src/bindings/run_loop.rs:145: ...
4 years, 4 months ago (2016-08-12 01:36:32 UTC) #3
mknyszek
https://codereview.chromium.org/2244463002/diff/40001/mojo/public/rust/src/bindings/run_loop.rs File mojo/public/rust/src/bindings/run_loop.rs (right): https://codereview.chromium.org/2244463002/diff/40001/mojo/public/rust/src/bindings/run_loop.rs#newcode145 mojo/public/rust/src/bindings/run_loop.rs:145: closure: Box<Fn(&mut RunLoop) + 't>, On 2016/08/12 01:36:31, Eric ...
4 years, 4 months ago (2016-08-12 08:09:31 UTC) #4
Eric Holk
https://codereview.chromium.org/2244463002/diff/40001/mojo/public/rust/src/bindings/run_loop.rs File mojo/public/rust/src/bindings/run_loop.rs (right): https://codereview.chromium.org/2244463002/diff/40001/mojo/public/rust/src/bindings/run_loop.rs#newcode145 mojo/public/rust/src/bindings/run_loop.rs:145: closure: Box<Fn(&mut RunLoop) + 't>, On 2016/08/12 08:09:31, mknyszek ...
4 years, 4 months ago (2016-08-12 16:35:08 UTC) #5
mknyszek
4 years, 4 months ago (2016-08-12 17:23:23 UTC) #8
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
fefa014de0c9b55547ea19ed005b252a00dbe2e2 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698