• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 #ifndef OHOS_APP_DISPATCHER_GROUP_H
16 #define OHOS_APP_DISPATCHER_GROUP_H
17 
18 namespace OHOS {
19 namespace AppExecFwk {
20 
21 /**
22  * Defines a group, which stands for a set of tasks semantically.
23  * <p>Multiple tasks can be associated with a group so that they can be considered as a whole.
24  * <p>This interface must be used with methods in {@link ohos.app.dispatcher.TaskDispatcher TaskDispatcher},
25  * such as {@link ohos.app.dispatcher.TaskDispatcher#createDispatchGroup createDispatchGroup},
26  * {@link ohos.app.dispatcher.TaskDispatcher#asyncGroupDispatch asyncGroupDispatch},
27  * {@link ohos.app.dispatcher.TaskDispatcher#groupDispatchWait groupDispatchWait},
28  * and {@link ohos.app.dispatcher.TaskDispatcher#groupDispatchNotify groupDispatchNotify}.
29  * @since 1
30  */
31 class Group {};
32 
33 }  // namespace AppExecFwk
34 }  // namespace OHOS
35 #endif
36