anchor.diff:              logger.severe('Request handler failed', error, stack);
             }
           }
  -      });
  +      };
  +      if (Platform.isMacOS) {
  +        AppEngineRequestHandler origHandler = requestHandler;
  +        requestHandler = (ioRequest) {
  +          return fork(() {
  +            registerDbService(savedDb);
  +            return origHandler(ioRequest);
  +          });
  +        };
  +      }
  +      await runAppEngine(requestHandler);
       });
     });
   }
  
positive.code: // BSD-style license that can be found in the LICENSE file.
  
  import 'dart:async';
  
  import 'package:appengine/appengine.dart';
  import 'package:gcloud/service_scope.dart';
  import 'package:gcloud/http.dart';
  import 'package:gcloud/storage.dart';
  import 'package:googleapis_auth/auth_io.dart' as auth;
  import 'package:path/path.dart' as path;
  
negative.code: 
    withAppEngineServices(() async {
      return fork(() async {
        DatastoreDB savedDb;
        if (Platform.isMacOS) {
          savedDb = await _initializeApiaryDatastore();
        }
        final shelf.Handler apiHandler = await setupServices(activeConfiguration);
  
        AppEngineRequestHandler requestHandler = (ioRequest) async {
          if (context.isProductionEnvironment &&
              ioRequest.requestedUri.scheme != 'https') {
            final secureUri = ioRequest.requestedUri.replace(scheme: 'https');
  