observable.create deprecated code example
Example 1: observable.create is deprecated
this.data$ = new Observable((observer: Observer) => {
observer.next();
observer.complete();
});
Example 2: Function create_function() is deprecated in
$square = create_function('$x', 'return pow($x,2);');
$square = function($x){
return pow($x,2);
};
Example 3: is deprecated android studio
Depricating a method is like giving a warning to the developers not to use that method as the chances are high that the deprecated methods will be removed in the future release and your application which uses that method may no longer work when your users updates the platform to the latest release.