chromium engine async functions

To discuss development of addons / skins / customization of MediaMonkey.

Moderator: jiri

chromium engine async functions

Postby TIV73 » Fri Aug 25, 2017 3:13 pm

Good evening,
currently, promises are extensively used in MediaMonkey due to the obvious benefits asynchronous workflows provide. A while ago, the chromium engine implemented async functions, which kind of extend the idea of promises. Unfortunately, those functions are currently not available in MediaMonkey since it uses version 53, which predates them.

These keywords can, by a large margin, improve readability for functions that heavily rely on promises. Plus, the chrome remote protocol (used here for example) needs async/await functionality to proper handle asynchronous calls. Right now, getting data from Mediamonkey to an external interface in an asynchronous workflow requires workarounds that are either hit or miss, or sacrifice performance for functionality.

Is there any chance we are going to see an upgrade to a more recent version of the chromium engine in MediaMonkey soon?
TIV73
 
Posts: 43
Joined: Sat Nov 12, 2011 1:31 pm

Re: async functions

Postby PetrCBR » Fri Aug 25, 2017 5:21 pm

We're updating chromium very often ... for now we're on 53 because they removed support for sync operations on XMLHttpRequest (we're using for loading scripts using requirejs and in webapp) in 54. We plan to make this sync loading using native code so probably we will update chromium in future.
PetrCBR
 
Posts: 1337
Joined: Tue Mar 07, 2006 5:31 pm
Location: Czech

Re: chromium engine async functions

Postby TIV73 » Sat Aug 26, 2017 9:14 am

That's good to hear. Thanks for the update!
TIV73
 
Posts: 43
Joined: Sat Nov 12, 2011 1:31 pm


Return to MediaMonkey 5 developer forum

Who is online

Users browsing this forum: No registered users and 2 guests