pollword | perl agent for Pullword
kandi X-RAY | pollword Summary
kandi X-RAY | pollword Summary
pullword - The perl agent for Pullword(a online Chinese segmentation System) api!
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of pollword
pollword Key Features
pollword Examples and Code Snippets
Community Discussions
Trending Discussions on pollword
QUESTION
I've been looking around for a simple way to avoid the memory leaks I've read about caused by failing to unsubscribe. Most of the time I'm just wanting the ONE response from my backend. And then I'll want to unsubscribe. So why not call it in the callback?
...ANSWER
Answered 2018-Nov-08 at 21:53Unsubscribing is important to avoid memory leaks, but it maybe not so important if you are "just wanting the ONE response from backend".
What I mean is that if, behind your this.puzzleService.login
you are using the Angular http
service, than you do not have to worry about unsubscribing since the service itself unsubscribes as soon as it gets the response from the backend, or an error occurs.
Unsubcribing is important when you face Observable streams which emit, by their nature, more than one value, and this is not the case of an http call but may be the case of web-sockets streams or other kind of streams.
This article from Ben Lesh, top contributor if not lead of RxJS, casts some light on the topic.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pollword
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page