synchronized Basic lock mechanism to prevent concurrent access to asynchronous code Documentation Documentation API reference