Template:Storage:threadsafety callback warning

by 2 contributors:
<%- template("Warning", ["This callback is executed on the thread that the statement or trigger is executing on.  If you use " + template('ifmethod', ['mozIStorageConnection', 'executeAsync']) + " or " + template('ifmethod', ['mozIStorageStatement', 'executeAsync']) + ", this callback will run on a different thread from the rest of your code.  Likewise, if you execute SQL on a different thread, this callback will be executed on that thread.  This callback should be <a href='http://en.wikipedia.org/wiki/Re-entrant_code'>reentrant</a> if any of the above applies to your use of the storage APIs!"]) %>
Search for pages that use Template:Storage:threadsafety callback warning to see example use cases and how many pages use this macro.

Document Tags and Contributors

Contributors to this page: trevorh, sdwilsh
Last updated by: trevorh,