Commit 1af62a6
committed
feat(api): provide task guards for lazy register
This update provides a way to use the basic AffectedModuleDetector task
guard when leveraging the `register` api to create tasks, without
needing to explicitly get the task immediately. This allows for the AMD
calculation to be evaluated lazily, and avoids performing work on tasks
that will not be executed.1 parent cef5e51 commit 1af62a6
File tree
1 file changed
+25
-2
lines changed- affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector
1 file changed
+25
-2
lines changedLines changed: 25 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
232 | 233 | | |
233 | 234 | | |
234 | 235 | | |
235 | | - | |
| 236 | + | |
236 | 237 | | |
237 | 238 | | |
238 | 239 | | |
| |||
247 | 248 | | |
248 | 249 | | |
249 | 250 | | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
250 | 269 | | |
251 | 270 | | |
252 | 271 | | |
| |||
340 | 359 | | |
341 | 360 | | |
342 | 361 | | |
343 | | - | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
344 | 367 | | |
345 | 368 | | |
346 | 369 | | |
| |||
0 commit comments