You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was looking the Template.push definition and noticed that it uses an apn variable on the instance and there's some sort of lifecycle management for creating and destroying it.
I'm wondering if the way that it was implemented takes multiple parallel calls in consideration without causing any side-effect by overwriting the apn property.
The text was updated successfully, but these errors were encountered:
guisehn
changed the title
Is it possible to send multiple push requests using the same template in parallel?
Is it possible to send multiple push requests using the same template instance in parallel?
Jun 2, 2020
Well, remember that Node is single-threaded, so, even in the race condition scenario, the worst case is that some other APN will be opened then auto closed.
I was looking the
Template.push
definition and noticed that it uses anapn
variable on the instance and there's some sort of lifecycle management for creating and destroying it.I'm wondering if the way that it was implemented takes multiple parallel calls in consideration without causing any side-effect by overwriting the
apn
property.e.g. is the code below supported?
The text was updated successfully, but these errors were encountered: