Using this.unblock, what are your experiences?

I think there is some misconception here (quote from the original topic):

I really don’t know how the above code could have the same effect as running this.unblock() (e.g. in Meteor 2.3 or with an external package). This code merely delays the setup of the respective publication, not its execution. @robfallows also hints that when he writes…

[…] if you have many publications and they take a long time to set up, you can set them up asynchronously

The callback of the publication will first be invoked when a client calls Meteor.subscribe, but then the invocation of Meteor.setTimeout won’t play a role anymore.

So unless I’m mistaken, the above “trick” with Meteor.setTimeout isn’t a substitute for this.unblock() in publications.

1 Like