Gabriel Grubba
0afa7df1fa
Solve error in jsdoc generation
2023-12-04 15:33:44 -03:00
Radosław Miernik
888892501e
Fixed missing firstRunPromise.
2023-11-29 22:36:55 +01:00
harryadel
a30c131976
[tracker] attach methods without the use of 'this'
2023-11-29 11:58:14 +02:00
Harry Adel
e41c8ecf9e
Update packages/tracker/tracker.js
...
Co-authored-by: Radosław Miernik <radekmie@gmail.com >
2023-11-29 00:43:39 +02:00
harryadel
f2c98ae930
[tracker] await then & catch
2023-11-22 14:36:52 +02:00
harryadel
ff615a5faf
[tracker] add then and catch
2023-11-19 21:15:12 +02:00
harryadel
3a8e09a275
Apply @radekmie suggestions
2023-10-12 17:59:24 +03:00
Daniel Dornhardt
4654adbe7e
Allow for await-able autoruns by adding firstRunPromise to computation objects.
2023-10-04 16:13:10 +03:00
Gabriel Grubba
95b1343c64
updated jsdocs for tracker
2023-04-19 10:41:55 -03:00
Radosław Miernik
bf1d038811
Implemented async Tracker with explicit values.
2022-11-04 22:11:20 +01:00
Ben Newman
61506c64e2
Reinstate Deps as an alias for Tracker to fix #9830 .
2018-04-28 10:10:47 -04:00
Ben Newman
14f6f9328b
Modernize Tracker package.
...
Changes:
* Use ECMAScript class and arrow function syntax for Tracker.Computation
and Tracker.Dependency.
* Remove the deprecated.js file (no more Deps, Tracker.depend, or
Tracker-related Meteor.* APIs).
2018-01-31 17:37:14 -05:00
Max Nowack
759671dc6c
add function to expose tracker inFlush variable ( #8565 )
2017-04-05 11:54:40 -04:00
vix3
26544d696f
Fix typo in comment ( #8540 )
...
Fixed small word typo in comments (meteor/packages/tracker/tracker.js).
2017-03-29 19:44:31 -04:00
Ilari Patrikka
768d82eb6c
Set stopped computation to null instead of delete ( #7326 ) ( #7328 )
...
* Set stopped computation to null instead of delete (#7326 )
Delete can be very slow. Setting the stopped computation property to null instead brings a speed gain of 3-10x.
http://bertanguven.com/preventing-memory-leaks-in-javascript-null-vs-delete
* add generated npm-shrinkwrap.json
* Remove computation tracking from Tracker.
2016-07-12 22:37:48 +00:00
Dean Radcliffe
aa2fedc46d
Implements Tracker.Computation#flush, and #run
2016-05-11 19:53:11 -05:00
Mitar
0cded75630
Fix variable name spelling
2015-09-15 13:55:01 -07:00
David Glasser
91ce1561c3
tracker: implement Computation.onStop
...
Fixes #3915 .
2015-04-29 00:18:13 -07:00
Slava Kim
a02f97c4b6
Improve logging through Meteor._debug in Tracker
2015-03-17 01:25:58 -07:00
Slava Kim
1df8d15275
Put extra onError callback of Tracker.autorun to a named options object
2015-03-17 00:42:35 -07:00
Slava Kim
d6af3605ca
Tweaks to error reporting in Tracker.
...
- Allow passing an onError callback to Tracker.autorun.
- Workaround the issue described in #3655 by logging parts of error message
separately.
2015-03-17 00:37:58 -07:00
Slava Kim
9a29988016
Merge pull request #3937 from meteor/callbacks-docs
...
Better documentation for callbacks taking arguments
2015-03-17 07:21:11 +00:00
Slava Kim
b3e1c4d89a
Docs: Put TrackerComputationFunction typedef to Tracker namespace
2015-03-17 00:20:32 -07:00
Slava Kim
dab2782434
Document a whole bunch of missing arguments/returns
2015-03-14 23:04:09 -07:00
David Glasser
14887d8c9c
Avoid infinite loops in the Tracker flush cycle
...
Tracker.flush() will still guarantee that all computations and
afterFlush callbacks have been fully flushed, but the implicit flush
cycle started by an invalidation or afterFlush call will yield to the
event loop for 10ms every thousand computations.
Fixes #3901 .
Reviewed at https://rbcommons.com/s/meteor/r/25/
2015-03-12 11:02:09 -07:00
Sergio Garcia Murillo
f50f2b64c2
Use Meteor._setImmediate instead of setTimeout with 0
2015-03-10 14:05:11 -07:00
Slava Kim
996369e6a5
Expose the active computations held within Tracker
2015-02-26 18:45:13 -08:00
Peter Curtis
1f3741cba2
Fix a failure to detect flush-in-autorun
...
Fixes #3037 .
2015-01-09 15:31:30 -08:00
Slava Kim
44832cbbdc
Add return types and properties types in JSDoc to a lot of methods
2014-11-02 02:45:17 -08:00
David Greenspan
c9857ea642
Change additional occurrences of Deps to Tracker
2014-08-27 22:43:28 -07:00
Sashko Stubailo
8e7cd297bf
Renamed Deps to Tracker and added deprecated deps package. Tests pass
2014-08-27 19:45:49 -07:00